Compartir a través de


ColorFormat.SetCMYK Method

Sets a cyan-magenta-yellow-black (CMYK) color value.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub SetCMYK ( _
    Cyan As Integer, _
    Magenta As Integer, _
    Yellow As Integer, _
    Black As Integer _
)
'Usage
Dim instance As ColorFormat
Dim Cyan As Integer
Dim Magenta As Integer
Dim Yellow As Integer
Dim Black As Integer

instance.SetCMYK(Cyan, Magenta, Yellow, _
    Black)
void SetCMYK(
    int Cyan,
    int Magenta,
    int Yellow,
    int Black
)

Parameters

  • Cyan
    Type: System.Int32
    A value that represents the cyan component of the color. Can be any value from 0 to 255.
  • Magenta
    Type: System.Int32
    A value that represents the magenta component of the color. Can be any value from 0 to 255.
  • Yellow
    Type: System.Int32
    A value that represents the yellow component of the color. Can be any value from 0 to 255.
  • Black
    Type: System.Int32
    A value that represents the black component of the color. Can be any value from 0 to 255.

See Also

Reference

ColorFormat Interface

ColorFormat Members

Microsoft.Office.Interop.Word Namespace