Previous Document Next Document

Object Model Reference : Classes : C : Color : Properties : Color.Name


Color.Name

Property Name([Components As Boolean = False]) As String

Description

Member of Color

The Name property returns a string value that identifies a color in CorelDRAW. A color is an effect applied to an object that alters the object’s appearance by the way it reflects light. A color model is a system that defines the number and type of colors that make up an image and that is used to organize and define colors according to a set of basic properties that can be reproduced. Black-and-white, grayscale, RGB, CMYK, and paletted are examples of popular color modes.

The Name property returns a read-only value.

Parameter
Description
Components
Specifies whether to return the color’s components when using the Name property. This parameter is optional, and its default value is False.

VBA example

The following VBA example displays the name of the color and its color component values.

Sub Test()
 With ActiveSelection.Shapes(1).Fill.UniformColor
  MsgBox "Fill Color Name: " & .Name & vbCr & _
  "Components: " & .Name (True)
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.