 | PdfRadioButtonControl Constructor |
Create a new radiobutton control and assign it to the specified field.
Namespace: Patagames.Pdf.Net.AcroFormsAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.111.2704
Syntaxpublic PdfRadioButtonControl(
PdfRadioButtonField field,
PdfPage page,
FS_RECTF rect,
CheckboxCaptions icon = CheckboxCaptions.Circle,
FS_COLOR? borderColor = null,
FS_COLOR? backgroundColor = null,
FS_COLOR? iconColor = null,
FormHighlightingMode highlightingMode = FormHighlightingMode.Invert,
PageRotate rotation = PageRotate.Normal,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles.Solid,
float[] dashPattern = null
)
Public Sub New (
field As PdfRadioButtonField,
page As PdfPage,
rect As FS_RECTF,
Optional icon As CheckboxCaptions = CheckboxCaptions.Circle,
Optional borderColor As FS_COLOR? = Nothing,
Optional backgroundColor As FS_COLOR? = Nothing,
Optional iconColor As FS_COLOR? = Nothing,
Optional highlightingMode As FormHighlightingMode = FormHighlightingMode.Invert,
Optional rotation As PageRotate = PageRotate.Normal,
Optional borderWidth As Single = 1F,
Optional borderStyle As BorderStyles = BorderStyles.Solid,
Optional dashPattern As Single() = Nothing
)
public:
PdfRadioButtonControl(
PdfRadioButtonField^ field,
PdfPage^ page,
FS_RECTF rect,
CheckboxCaptions icon = CheckboxCaptions::Circle,
Nullable<FS_COLOR> borderColor = nullptr,
Nullable<FS_COLOR> backgroundColor = nullptr,
Nullable<FS_COLOR> iconColor = nullptr,
FormHighlightingMode highlightingMode = FormHighlightingMode::Invert,
PageRotate rotation = PageRotate::Normal,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles::Solid,
array<float>^ dashPattern = nullptr
)
new :
field : PdfRadioButtonField *
page : PdfPage *
rect : FS_RECTF *
?icon : CheckboxCaptions *
?borderColor : Nullable<FS_COLOR> *
?backgroundColor : Nullable<FS_COLOR> *
?iconColor : Nullable<FS_COLOR> *
?highlightingMode : FormHighlightingMode *
?rotation : PageRotate *
?borderWidth : float32 *
?borderStyle : BorderStyles *
?dashPattern : float32[]
(* Defaults:
let _icon = defaultArg icon CheckboxCaptions.Circle
let _borderColor = defaultArg borderColor null
let _backgroundColor = defaultArg backgroundColor null
let _iconColor = defaultArg iconColor null
let _highlightingMode = defaultArg highlightingMode FormHighlightingMode.Invert
let _rotation = defaultArg rotation PageRotate.Normal
let _borderWidth = defaultArg borderWidth 1f
let _borderStyle = defaultArg borderStyle BorderStyles.Solid
let _dashPattern = defaultArg dashPattern null
*)
-> PdfRadioButtonControlpublic PdfRadioButtonControl(
PdfRadioButtonField field,
PdfPage page,
FS_RECTF rect,
CheckboxCaptions icon = CheckboxCaptions.Circle,
FS_COLOR? borderColor = null,
FS_COLOR? backgroundColor = null,
FS_COLOR? iconColor = null,
FormHighlightingMode highlightingMode = FormHighlightingMode.Invert,
PageRotate rotation = PageRotate.Normal,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles.Solid,
float[] dashPattern = null
)
Patagames.Pdf.Net.AcroForms.PdfRadioButtonControl = function(field, page, rect, icon, borderColor, backgroundColor, iconColor, highlightingMode, rotation, borderWidth, borderStyle, dashPattern);
Parameters
- field PdfRadioButtonField
- The field to which this control is assigned./>
- page PdfPage
- The page that will host this control.
- rect FS_RECTF
- The area on the page where this control should be placed.
- icon CheckboxCaptions (Optional)
- The appearance of an icon that indicates the checked state of this control.
- borderColor NullableFS_COLOR (Optional)
- The border color of this control.
- backgroundColor NullableFS_COLOR (Optional)
- The background color of the control.
- iconColor NullableFS_COLOR (Optional)
- The color of the control’s icon.
- highlightingMode FormHighlightingMode (Optional)
- The control’s highlighting mode, the visual effect to be used when the mouse button is pressed or held down inside its active area.
- rotation PageRotate (Optional)
- A value indicating how the control is rotated counterclockwise relative to the page.
- borderWidth Single (Optional)
- The border width in points.
- borderStyle BorderStyles (Optional)
- The border style.
- dashPattern Single (Optional)
- An array defining a pattern of dashes and gaps to be used in drawing a dashed border. The dash array is specified in the same format as in the line dash pattern parameter of the graphics state. The dash phase is not specified and is assumed to be 0. For example, a DashPattern property of[3 2] specifies a border drawn with 3-point dashes alternating with 2-point gaps.
See Also