SetPropertyName()

View as Markdown

Definition

Sets a default property name to a custom string to be displayed on the UI.

Method Return Value

This method does not return a value.

Syntax

SetPropertyName(string propertyName, string displayName)

Method Parameters

ParameterDescription
propertyNameA string representing the property to be renamed. Possible values include:
• UpBrush
• DownBrush
• BarWidth
• Stroke
• Stroke2
• Value
• Value2
• BaseBarsPeriodType
• BaseBarsPeriodValue
• PointAndFigurePriceType
• ReversalType
displayNameA string representing the desired property name

Examples

1protected override void OnStateChange()
2{
3 if (State == State.Configure)
4 {
5 Properties.Remove(Properties.Find("Stroke", true));
6 Properties.Remove(Properties.Find("Stroke2", true));
7
8 SetPropertyName("UpBrush", "AdvanceBar");
9 SetPropertyName("DownBrush", "DeclineBar");
10 }
11}

If you do not wish to use specific properties accessible via SetPropertyName(), you will need to remove them from the list via Properties.Remove, as shown in the example above.