STK XSend comments on this topic.
Color Property (AgDrawElemLine)
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 l As AGI.STKX.AgDrawElemLine 
l = Me.AxAgUiAxVOCntrl1.DrawElements.Add("Line") 
 
Me.ColorPicker.ShowDialog() 
 
l.Color = System.Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle(ColorPicker.Color()))

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.