Share

DisplayStyle.Color Property

Gets or sets the style's color.



Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280

Syntax

C#

public Color Color { get; set; }

VB

Public Property Color As Color
	Get
	Set

C++

public:
property Color^ Color {
	Color^ get ();
	void set (Color^ value);
}

Property Value

Color

Example

1// show curves in violet
2myAlignmentStyle.GetDisplayStyleModel(AlignmentDisplayStyleType.Curve).Color = Color.FromColorIndex(ColorMethod.ByAci, 200);
3myAlignmentStyle.GetDisplayStylePlan(AlignmentDisplayStyleType.Curve).Color = Color.FromColorIndex(ColorMethod.ByAci, 200);
4
5// show straight sections in blue
6myAlignmentStyle.GetDisplayStyleModel(AlignmentDisplayStyleType.Line).Color = Color.FromColorIndex(ColorMethod.ByAci, 160);
7myAlignmentStyle.GetDisplayStylePlan(AlignmentDisplayStyleType.Line).Color = Color.FromColorIndex(ColorMethod.ByAci, 160);

See Also

Reference

Was this information helpful?