Click or drag to resize

WidgetSetBackgroundColor Method

Sets the background color of the Widget. (Optional)

Namespace:  pdftron.PDF.Annots
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public void SetBackgroundColor(
	ColorPt c,
	int CompNum
)

Parameters

c
Type: pdftron.PDFColorPt
A ColorPt object that denotes the color of the wdget background.
CompNum
Type: SystemInt32
An int whose value implies the color space used for the parameter c.
Remarks
it is necessary to make sure the consistancy between the ColorPt type and the ColorSpace::Type value. e_device_gray corresponds to an Array of two numbers; e_device_rgb corresponds to an Array of 3 numbers, e_device_cmyk corresponds to an Array of 4 numnbers, while e_null correspons to an arry of 0 number. Entries out of the specified color space Array length will be desgarded. However, missing entries for a specified color space will throw exception either when setting the color or when later retrieving color(colorspace) information. This property is part of the Widget appearance Characteristics dictionary, this dictionary that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual presentation on the page.
See Also