STK X Send comments on this topic.
Color Property (AgDrawElemRect)
See Also  Example
Windows






Windows & Linux

Description

Color of the rectangle.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property Color() As System.Drawing.Color

[C#]
public System.Drawing.Color Color {get; set;}

[Managed C++]
public: __property uint^ get_Color();
public: __property void set_Color(
uint ^
);

[Unmanaged C++]
public: HRESULT get_Color(
uint ** ppRetVal
);
public: HRESULT put_Color(
uint * pNewColor
);

[Java]
public long getColor();public void setColor(
long
);

Example

[Visual Basic .NET] Copy Code
Dim r As AGI.STKX.AgDrawElemRect
r = Me.AxAgUiAxVOCntrl1.DrawElements.Add("Rect")

Me.ColorPicker.ShowDialog()

r.Color = System.Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle(ColorPicker.Color()))

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface