IColor Interface

IColor Interface | Send Feedback
See Also Members Example

Allows access to LineColors, TextColors, and background Colors.

# Syntax

Visual Basic |
--- | ---
    Public Interface IColor

C# |
--- | ---
    public interface IColor

JavaScript |
--- | ---
    Object dsColor

COM native C++ |
--- | ---
    interface IColor

C++ |
--- | ---
    class dsColor

# Example

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)

# Remarks

To change the color of an entity that allows access to its Color:

1. Get the entity's Color object.
2. Call IColor::SetByColor, IColor::SetColorByIndex, IColor::SetNamedColor, or IColor::SetRGBColor to change the color of that instance of the Color object.
3. 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.

# Accessors

IApplication::GetColorByIndex

IApplication::GetNamedColor

IApplication::GetRGBColor

IApplicationOptions::GetElementColor

IAttributeDefinition::Color

IAttributeInstance::Color

IBlockInstance::Color

ICircle::Color

ICircleArc::Color

IColorPicker::GetColor

IDimensionStyleLineOptions::DimensionLineColor

IDimensionStyleTextOptions::Color

IDimensionStyleTextOptions::FillColor

IEllipseArc::Color

IEmbeddedObject::Color

IEntityHelper::GetColor

IFace::Color

IGeneralDimension::Color

IGradientBackground::BottomColor

IGradientBackground::MiddleColor

IGradientBackground::TopColor

IHatch::Color

IInfiniteLine::Color

ILayer::Color

ILayer::GetColorInViewport

ILeader::Color

ILine::Color

INote::BackgroundFillColor

INote::Color

IPoint::Color

IPolyFaceMesh::Color

IPolygonMesh::Color

IPolyLine::Color

IPolyLine3D::Color

IRay::Color

IReferenceImage::Color

IRegion::Color

IRichLine::Color

IRichLineStyle::GetLineColor

IShape::Color

ISimpleNote::Color

ISolid::Color

ISolidBackground::Color

ISpline::Color

ITable::Color

ITable::GetBackgroundColor

ITable::GetBordersColor

ITable::GetCellBackgroundColor

ITable::GetCellBordersColor

ITable::GetCellTextColor

ITable::GetTextColor

ITableStyle::GetBackgroundColor

ITableStyle::GetBordersColor

ITableStyle::GetTextColor

ITolerance::Color

ITolerance::DimensionLineColor

ITolerance::TextColor

ITrace::Color

IViewport::Color

# Object Model

Color

# See Also

####

IColor Members
Interop.dsAutomation Namespace
IColorPicker Interface