In This Topic
GdPicture14 Namespace / GdPicturePDF Class / GetFormFieldBackgroundColor Method

GetFormFieldBackgroundColor Method (GdPicturePDF)

In This Topic
Returns the background (fill) color, if any is defined, of a required form field, that is specified by its unique form field's identifier and it is related to the currently loaded PDF document.
Overload List
OverloadDescription
Returns the background (fill) color of a required form field, that is specified by its unique form field's identifier and it is related to the currently loaded PDF document. The method only returns the correct form field's background (fill) color if this attribute is specified in the form field object itself, otherwise it will fail.

The form field's background (fill) color attribute is not assigned automatically when creating the form field, however, you can specify the background color using the SetFormFieldBackgroundColor(Int32,Byte,Byte,Byte) method right after adding the required form field on the page. Otherwise, the form field may display invisible.

Be aware that if the background (fill) color differs for each single child radio button in a group of radio buttons within a radio button field, this method will fail. Please use the GetFormFieldBackgroundColor(Int32,Int32) method to determine the individual background (fill) color for each child radio button in a group instead.

 
Returns the background (fill) color of a required form field, here a child radio button in a group. The radio button group is specified by its unique form field's identifier and it is related to the currently loaded PDF document. Please note that every single child radio button in a group can have its own background (fill) color defined. As said, this method is only applicable to radio buttons.

The method only returns the correct form field's background (fill) color if this attribute is specified in the form field object itself, otherwise it will fail. The form field's background (fill) color attribute is not assigned automatically when creating the form field, however, you can specify the background color using the SetFormFieldBackgroundColor(Int32,Int32,Color) method right after adding the required form field on the page. Otherwise, the form field may display invisible.

 
See Also