 | PdfTextBoxControl Constructor |
Create new pushbutton field.
Namespace: Patagames.Pdf.Net.AcroFormsAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.111.2704
Syntaxpublic PdfTextBoxControl(
PdfTextBoxField field,
PdfPage page,
FS_RECTF rect,
FS_COLOR? borderColor = null,
FS_COLOR? backgroundColor = null,
FS_COLOR? textColor = null,
PdfFont font = null,
float? fontSize = null,
PageRotate rotation = PageRotate.Normal,
JustifyTypes alignment = JustifyTypes.Left,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles.Solid,
float[] dashPattern = null
)
Public Sub New (
field As PdfTextBoxField,
page As PdfPage,
rect As FS_RECTF,
Optional borderColor As FS_COLOR? = Nothing,
Optional backgroundColor As FS_COLOR? = Nothing,
Optional textColor As FS_COLOR? = Nothing,
Optional font As PdfFont = Nothing,
Optional fontSize As Single? = Nothing,
Optional rotation As PageRotate = PageRotate.Normal,
Optional alignment As JustifyTypes = JustifyTypes.Left,
Optional borderWidth As Single = 1F,
Optional borderStyle As BorderStyles = BorderStyles.Solid,
Optional dashPattern As Single() = Nothing
)
public:
PdfTextBoxControl(
PdfTextBoxField^ field,
PdfPage^ page,
FS_RECTF rect,
Nullable<FS_COLOR> borderColor = nullptr,
Nullable<FS_COLOR> backgroundColor = nullptr,
Nullable<FS_COLOR> textColor = nullptr,
PdfFont^ font = nullptr,
Nullable<float> fontSize = nullptr,
PageRotate rotation = PageRotate::Normal,
JustifyTypes alignment = JustifyTypes::Left,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles::Solid,
array<float>^ dashPattern = nullptr
)
new :
field : PdfTextBoxField *
page : PdfPage *
rect : FS_RECTF *
?borderColor : Nullable<FS_COLOR> *
?backgroundColor : Nullable<FS_COLOR> *
?textColor : Nullable<FS_COLOR> *
?font : PdfFont *
?fontSize : Nullable<float32> *
?rotation : PageRotate *
?alignment : JustifyTypes *
?borderWidth : float32 *
?borderStyle : BorderStyles *
?dashPattern : float32[]
(* Defaults:
let _borderColor = defaultArg borderColor null
let _backgroundColor = defaultArg backgroundColor null
let _textColor = defaultArg textColor null
let _font = defaultArg font null
let _fontSize = defaultArg fontSize null
let _rotation = defaultArg rotation PageRotate.Normal
let _alignment = defaultArg alignment JustifyTypes.Left
let _borderWidth = defaultArg borderWidth 1f
let _borderStyle = defaultArg borderStyle BorderStyles.Solid
let _dashPattern = defaultArg dashPattern null
*)
-> PdfTextBoxControlpublic PdfTextBoxControl(
PdfTextBoxField field,
PdfPage page,
FS_RECTF rect,
FS_COLOR? borderColor = null,
FS_COLOR? backgroundColor = null,
FS_COLOR? textColor = null,
PdfFont font = null,
float? fontSize = null,
PageRotate rotation = PageRotate.Normal,
JustifyTypes alignment = JustifyTypes.Left,
float borderWidth = 1f,
BorderStyles borderStyle = BorderStyles.Solid,
float[] dashPattern = null
)
Patagames.Pdf.Net.AcroForms.PdfTextBoxControl = function(field, page, rect, borderColor, backgroundColor, textColor, font, fontSize, rotation, alignment, borderWidth, borderStyle, dashPattern);
Parameters
- field PdfTextBoxField
- The pushbutton field to which this control is assigned./>
- page PdfPage
- The page on which this control will be placed.
- rect FS_RECTF
- The area on the page where the control should fit.
- borderColor NullableFS_COLOR (Optional)
- The border color of this control.
- backgroundColor NullableFS_COLOR (Optional)
- The background color of the control.
- textColor NullableFS_COLOR (Optional)
- The color of the text inside this textbox control.
- font PdfFont (Optional)
- The font used for drawing textbox control's text.
- fontSize NullableSingle (Optional)
- The font size.
- rotation PageRotate (Optional)
- A value indicating how the control is rotated counterclockwise relative to the page.
- alignment JustifyTypes (Optional)
- A code specifying the form of quadding (justification) to be used in displaying the text.
- 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