API Documentation > CorelDRAW > 2025-v26 > Color > IVGColor
Color.CMYMagenta property
Gets or sets the CMY Magenta color value
Syntax:
Property Get CMYMagenta() As Long
Property Let CMYMagenta(ByVal Value As Long)
Remarks:
The CMYMagenta property returns or specifies the magenta color for the CMY color model 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. CMY is a color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.
Examples:
The following VBA example deletes the object if the CMY color model's magenta component value is greater than 50.
Sub Test()
Dim s As Shape
Set s = ActiveSelection.Shapes(1)
If s.Fill.UniformColor.CMYMagenta > 50 Then
  s.Delete
End If 
End Sub