SetDefaultColor Method (Application Object)

Scope: Schematic editor

Object: Application Object

Prerequisites: None

Sets the new color (in RGB format) for specified object type.

Note:

This method only applies to nets, components, attributes, and labels. Trying to use this method to set the default color for any other object type results in an error.

Usage

Application.SetObjectColor(ByVal ObjectType As VdObjectType, ByVal Color as IColor)

Arguments

ObjectType

Type of objects for which to set the new color. Objects are defined by “VdObjectType Enum”.

Only the following VdObject enumerated types are valid as arguments for this method:

  • VDTS_LINE (numerical value 0)

  • VDTS_BOX (numerical value 1)

  • VDTS_TEXT (numerical value 2)

  • VDTS_CIRCLE (numerical value 3)

  • VDTS_ARC (numerical value 4)

  • VDTS_NET (numerical value 5)

  • VDTS_ATTRIBUTE (numerical value 6)

  • VDTS_COMPONENT (numerical value 7)

  • VDTS_LABEL (numerical value 8)

  • VDTS_PIN (numerical value 9)

  • VDTL_ANNOTATION (numerical value 1036)

  • VDTL_SELECTION (numerical value 1037)

  • VDTL_BACKGROUND (numerical value 1038)

  • VDTL_BORDER (numerical value 1040)

  • VDTL_HIGHLIGHT (numerical value 1041)

Color

New color in RGB format (CColor Object).