 | PdfTextBoxField Constructor |
Create new textbox field and add it into interactive forms.
Namespace: Patagames.Pdf.Net.AcroFormsAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic PdfTextBoxField(
PdfInteractiveForms forms,
string name = null,
PdfField parent = null,
PdfFont defFont = null,
float fontSize = 0f,
FS_COLOR? color = null,
JustifyTypes alignment = JustifyTypes.Left
)
Public Sub New (
forms As PdfInteractiveForms,
Optional name As String = Nothing,
Optional parent As PdfField = Nothing,
Optional defFont As PdfFont = Nothing,
Optional fontSize As Single = 0F,
Optional color As FS_COLOR? = Nothing,
Optional alignment As JustifyTypes = JustifyTypes.Left
)
public:
PdfTextBoxField(
PdfInteractiveForms^ forms,
String^ name = nullptr,
PdfField^ parent = nullptr,
PdfFont^ defFont = nullptr,
float fontSize = 0f,
Nullable<FS_COLOR> color = nullptr,
JustifyTypes alignment = JustifyTypes::Left
)
new :
forms : PdfInteractiveForms *
?name : string *
?parent : PdfField *
?defFont : PdfFont *
?fontSize : float32 *
?color : Nullable<FS_COLOR> *
?alignment : JustifyTypes
(* Defaults:
let _name = defaultArg name null
let _parent = defaultArg parent null
let _defFont = defaultArg defFont null
let _fontSize = defaultArg fontSize 0f
let _color = defaultArg color null
let _alignment = defaultArg alignment JustifyTypes.Left
*)
-> PdfTextBoxField
public PdfTextBoxField(
PdfInteractiveForms forms,
String name = null,
PdfField parent = null,
PdfFont defFont = null,
float fontSize = 0f,
FS_COLOR? color = null,
JustifyTypes alignment = JustifyTypes.Left
)
Patagames.Pdf.Net.AcroForms.PdfTextBoxField = function(forms, name, parent, defFont, fontSize, color, alignment);
Parameters
- forms PdfInteractiveForms
- Interactive forms.
- name String (Optional)
- The partial field name. Cannot contain a period.
- parent PdfField (Optional)
- The parent field. Only non-terminal fields are accepted.
- defFont PdfFont (Optional)
- Default font used for all controls assigned with this field.
- fontSize Single (Optional)
- Default font's size.
- color NullableFS_COLOR (Optional)
- The default text color used when no text color is specified in the control.
- alignment JustifyTypes (Optional)
- A code specifying the form of justification to be used in displaying the text.
See Also