AGI STK X 11Send comments on this topic.
Color Property (AgDrawElemRect)
See Also
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 * pVal
);
public: HRESULT put_Color(
    uint newVal
);
[Java]
public long getColor();
public void setColor(
    long
);

See Also

Example

[Visual Basic .NET]
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()))
© 2019 Analytical Graphics, Inc. All Rights Reserved.