PC-DMIS 2019 R1 Object Library
Colors Collection Members
See Also  Overview  Send Topic Feedback | See Object Hierarchy Chart
PCDLRN ActiveX DLL : Colors Collection

Glossary Item Box

Public Methods

Public Method Add

This method creates a new color node associated with the specified Command Type ID or Color Section ID, returning a Color object for the added node. Once you add a node, you can then define the colors used for the Standard, Marked, Debug, and OutTol. 

Public Method BuildColortableRebuild Color Table using the current colors. retuns the
Public Method DiscardChangesAll changes made to the Colors collection are done inside a temporary structure. To restore the saved values and overwrite any changes you made in the temporary structure, use this method.
Public Method GetColorTableColorReturns the color specified by the colorIndex parameter from the template's color table.
Public Method IsAllowed

This checks whether or not the specified Command Type or Color Section ID is valid in the current PC-DMIS configuration. If it is valid, it returns TRUE.

Public Method ItemThis method returns a specified color object from the color table based on the UID1 and UID2 parameters entered.
Public Method SaveChanges

All changes made to the Colors collection are done inside a temporary structure. This copies the changes made inside this temporary structure to the master colors structure, essentially saving your changes, making them permanent.

Public Method UsedColor

This returns the color currently associated with the defined Command Type ID or Color Section ID. If a color is not defined for a feature type, the parent color is recursively searched until the default color is reached.

Public Properties

Public Property ApplicationThis property represents the read-only PC-DMIS Application object. The Application object includes properties and methods that return top-level objects.
Public Property BackgroundThis property returns or sets the Background color for the report template's color tree.
Public Property CountThis property returns the number of color nodes (Color objects) defined in the Colors collection (or color tree).
Public Property DimensionBackgroundThis property returns or sets the dimension background color for the template's color tree.
Public Property HighLightBackgroundThis property returns or sets the highlight background color for the template's color tree.
Public Property ModifiedThis property returns or sets the report template's "modified" tag for its color tree.
Public Property NumTableColorsThis property returns the number of colors defined in the report template's color table.
Public Property ParentThis returns this object's parent object. In this case, this is the ReportTemplate object.

See Also

Copyright © 2019. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.