Visual Basic | |
---|---|
Public Interface IColor |
C# | |
---|---|
public interface IColor |
JavaScript | |
---|---|
Object dsColor |
COM native C++ | |
---|---|
interface IColor |
C++ | |
---|---|
class dsColor |
Construct Line (C#)
Construct Line (VB.NET)
Construct Line (VBA)
Create and Apply DimensionStyle (C#)
Create and Apply DimensionStyle (VB.NET)
Create and Apply DimensionStyle (VBA)
Create Circles on Different Layers (JavaScript)
Insert Splines (JavaScript)
Insert Splines (C#)
Insert Splines (VB.NET)
Insert Splines (VBA)
Construct Line (VB.NET)
Construct Line (VBA)
Create and Apply DimensionStyle (C#)
Create and Apply DimensionStyle (VB.NET)
Create and Apply DimensionStyle (VBA)
Create Circles on Different Layers (JavaScript)
Insert Splines (JavaScript)
Insert Splines (C#)
Insert Splines (VB.NET)
Insert Splines (VBA)
To change the color of an entity that allows access to its Color:
- Get the entity's Color object.
- Call IColor::SetByColor, IColor::SetColorByIndex, IColor::SetNamedColor, or IColor::SetRGBColor to change the color of that instance of the Color object.
- Update the entity's Color object using the updated Color object.
The examples linked to this Help topic demonstrate how to change the color of a Line.
IApplicationOptions::GetElementColor
IDimensionStyleLineOptions::DimensionLineColor
IDimensionStyleTextOptions::Color
IDimensionStyleTextOptions::FillColor
IGradientBackground::BottomColor
IGradientBackground::MiddleColor
ITable::GetCellBackgroundColor
ITableStyle::GetBackgroundColor