public PdfPushButtonControl(
PdfPushButtonField field,
PdfPage page,
FS_RECTF rect,
string caption,
PdfAction action = null,
FS_COLOR? borderColor = null,
FS_COLOR? backgroundColor = null,
FS_COLOR? captionColor = null,
PdfFont font = null,
float? fontSize = 0f,
PdfBitmap icon = null,
FormHighlightingMode highlightingMode = FormHighlightingMode.Push,
TextPositions captionPos = TextPositions.TEXTPOS_CAPTION,
IconScaleModes iconMode = IconScaleModes.Always,
IconScaleTypes iconScale = IconScaleTypes.Proportional,
float horizontalOffset = 0.5f,
float verticalOffset = 0.5f,
bool fitToBounds = false,
PageRotate rotation = PageRotate.Normal,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles.Solid,
float[] dashPattern = null
)
Public Sub New (
field As PdfPushButtonField,
page As PdfPage,
rect As FS_RECTF,
caption As String,
Optional action As PdfAction = Nothing,
Optional borderColor As FS_COLOR? = Nothing,
Optional backgroundColor As FS_COLOR? = Nothing,
Optional captionColor As FS_COLOR? = Nothing,
Optional font As PdfFont = Nothing,
Optional fontSize As Single? = 0F,
Optional icon As PdfBitmap = Nothing,
Optional highlightingMode As FormHighlightingMode = FormHighlightingMode.Push,
Optional captionPos As TextPositions = TextPositions.TEXTPOS_CAPTION,
Optional iconMode As IconScaleModes = IconScaleModes.Always,
Optional iconScale As IconScaleTypes = IconScaleTypes.Proportional,
Optional horizontalOffset As Single = 0.5F,
Optional verticalOffset As Single = 0.5F,
Optional fitToBounds As Boolean = false,
Optional rotation As PageRotate = PageRotate.Normal,
Optional borderWidth As Single = 1F,
Optional borderStyle As BorderStyles = BorderStyles.Solid,
Optional dashPattern As Single() = Nothing
)
public:
PdfPushButtonControl(
PdfPushButtonField^ field,
PdfPage^ page,
FS_RECTF rect,
String^ caption,
PdfAction^ action = nullptr,
Nullable<FS_COLOR> borderColor = nullptr,
Nullable<FS_COLOR> backgroundColor = nullptr,
Nullable<FS_COLOR> captionColor = nullptr,
PdfFont^ font = nullptr,
Nullable<float> fontSize = 0f,
PdfBitmap^ icon = nullptr,
FormHighlightingMode highlightingMode = FormHighlightingMode::Push,
TextPositions captionPos = TextPositions::TEXTPOS_CAPTION,
IconScaleModes iconMode = IconScaleModes::Always,
IconScaleTypes iconScale = IconScaleTypes::Proportional,
float horizontalOffset = 0.5f,
float verticalOffset = 0.5f,
bool fitToBounds = false,
PageRotate rotation = PageRotate::Normal,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles::Solid,
array<float>^ dashPattern = nullptr
)
new :
field : PdfPushButtonField *
page : PdfPage *
rect : FS_RECTF *
caption : string *
?action : PdfAction *
?borderColor : Nullable<FS_COLOR> *
?backgroundColor : Nullable<FS_COLOR> *
?captionColor : Nullable<FS_COLOR> *
?font : PdfFont *
?fontSize : Nullable<float32> *
?icon : PdfBitmap *
?highlightingMode : FormHighlightingMode *
?captionPos : TextPositions *
?iconMode : IconScaleModes *
?iconScale : IconScaleTypes *
?horizontalOffset : float32 *
?verticalOffset : float32 *
?fitToBounds : bool *
?rotation : PageRotate *
?borderWidth : float32 *
?borderStyle : BorderStyles *
?dashPattern : float32[]
(* Defaults:
let _action = defaultArg action null
let _borderColor = defaultArg borderColor null
let _backgroundColor = defaultArg backgroundColor null
let _captionColor = defaultArg captionColor null
let _font = defaultArg font null
let _fontSize = defaultArg fontSize 0f
let _icon = defaultArg icon null
let _highlightingMode = defaultArg highlightingMode FormHighlightingMode.Push
let _captionPos = defaultArg captionPos TextPositions.TEXTPOS_CAPTION
let _iconMode = defaultArg iconMode IconScaleModes.Always
let _iconScale = defaultArg iconScale IconScaleTypes.Proportional
let _horizontalOffset = defaultArg horizontalOffset 0.5f
let _verticalOffset = defaultArg verticalOffset 0.5f
let _fitToBounds = defaultArg fitToBounds false
let _rotation = defaultArg rotation PageRotate.Normal
let _borderWidth = defaultArg borderWidth 1f
let _borderStyle = defaultArg borderStyle BorderStyles.Solid
let _dashPattern = defaultArg dashPattern null
*)
-> PdfPushButtonControl
public PdfPushButtonControl(
PdfPushButtonField field,
PdfPage page,
FS_RECTF rect,
String caption,
PdfAction action = null,
FS_COLOR? borderColor = null,
FS_COLOR? backgroundColor = null,
FS_COLOR? captionColor = null,
PdfFont font = null,
float? fontSize = 0f,
PdfBitmap icon = null,
FormHighlightingMode highlightingMode = FormHighlightingMode.Push,
TextPositions captionPos = TextPositions.TEXTPOS_CAPTION,
IconScaleModes iconMode = IconScaleModes.Always,
IconScaleTypes iconScale = IconScaleTypes.Proportional,
float horizontalOffset = 0.5f,
float verticalOffset = 0.5f,
boolean fitToBounds = false,
PageRotate rotation = PageRotate.Normal,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles.Solid,
float[] dashPattern = null
)
Patagames.Pdf.Net.AcroForms.PdfPushButtonControl = function(field, page, rect, caption, action, borderColor, backgroundColor, captionColor, font, fontSize, icon, highlightingMode, captionPos, iconMode, iconScale, horizontalOffset, verticalOffset, fitToBounds, rotation, borderWidth, borderStyle, dashPattern);