Difference between revisions of "API Objects properties constants"

From NakedMarkets
Jump to navigation Jump to search
Line 6: Line 6:
{| class=wikitable cellpadding="10" style="border-style: solid; border-width: 2px"
{| class=wikitable cellpadding="10" style="border-style: solid; border-width: 2px"
|-  
|-  
! Constant name !! Value || Type
! Constant name !! Description || Type
|-
|-
| '''OBJPROP_TIME1''' || Datetime value to set/get first coordinate time part (X1) || [https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-7.0 DateTime]
| '''OBJPROP_TIME1''' || Datetime value to set/get first coordinate time part (X1) || [https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-7.0 DateTime]
Line 22: Line 22:
| '''OBJPROP_COLOR''' || Color value to set/get object color || [https://learn.microsoft.com/en-us/dotnet/api/system.drawing.color?view=net-7.0 Color]
| '''OBJPROP_COLOR''' || Color value to set/get object color || [https://learn.microsoft.com/en-us/dotnet/api/system.drawing.color?view=net-7.0 Color]
|-
|-
| '''OBJPROP_STYLE''' || Rectangle
| '''OBJPROP_STYLE''' || Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style || [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types int]
|-
|-
| '''OBJPROP_WIDTH''' || Ellipse
| '''OBJPROP_WIDTH''' || integer value to set/get object line width || [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types int]
|-
|-
| '''OBJPROP_FIBOLEVELS''' || Triangle
| '''OBJPROP_FONTSIZE''' || Integer value to set/get font size for text objects || [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types int]
|-
| '''OBJPROP_LEVELCOLOR''' || Thumbs up
|-
| '''OBJPROP_LEVELSTYLE''' || Thumbs down
|-
| '''OBJPROP_LEVELWIDTH''' || Arrow Up
|-
| '''OBJPROP_FONTSIZE''' || Arrow down
|}
|}
=== Examples ===
=== Examples ===

Revision as of 03:33, 5 January 2023

Summary

The Object type constants are used in graphical objects functions to set the property of the object

Definition

Constant name Description Type
OBJPROP_TIME1 Datetime value to set/get first coordinate time part (X1) DateTime
OBJPROP_PRICE1 Double value to set/get first coordinate price part (Y1) Double
OBJPROP_TIME2 Datetime value to set/get second coordinate time part (X2) DateTime
OBJPROP_PRICE2 Double value to set/get second coordinate price part (Y2) Double
OBJPROP_TIME3 Datetime value to set/get third coordinate time part (X3) DateTime
OBJPROP_PRICE3 Double value to set/get third coordinate price part (Y3) Double
OBJPROP_COLOR Color value to set/get object color Color
OBJPROP_STYLE Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style int
OBJPROP_WIDTH integer value to set/get object line width int
OBJPROP_FONTSIZE Integer value to set/get font size for text objects int

Examples