Class TextBoxField
TextBoxField
[DataContract]
public class TextBoxField : FormField, IFormField
- Inheritance
-
TextBoxField
- Implements
- Inherited Members
Constructors
TextBoxField()
Initializes a new instance of the TextBoxField class.
[JsonConstructor]
protected TextBoxField()
TextBoxField(int, Rectangle, bool, string, FontFamily, int, string, bool, bool, bool, int, int, ValidationType, string, string, string, string, string, bool)
Initializes a new instance of the TextBoxField class.
public TextBoxField(int pageNumber = 0, Rectangle bounds = null, bool isRequired = false, string value = null, FontFamily font = FontFamily.Helvetica, int fontSize = 0, string fontHexColor = null, bool isBoldFont = false, bool isItalicFont = false, bool isUnderLineFont = false, int lineHeight = 0, int characterLimit = 0, ValidationType validationType = (ValidationType)0, string validationCustomRegex = null, string placeholder = null, string id = null, string validationCustomRegexMessage = null, string dataSyncTag = null, bool isReadOnly = false)
Parameters
pageNumber
intpageNumber.
bounds
Rectanglebounds (required).
isRequired
boolisRequired.
value
stringvalue.
font
FontFamilyfont (required).
fontSize
intfontSize.
fontHexColor
stringfontHexColor.
isBoldFont
boolisBoldFont.
isItalicFont
boolisItalicFont.
isUnderLineFont
boolisUnderLineFont.
lineHeight
intlineHeight.
characterLimit
intcharacterLimit.
validationType
ValidationTypevalidationType.
validationCustomRegex
stringvalidationCustomRegex.
placeholder
stringplaceHolder.
id
stringid.
validationCustomRegexMessage
stringvalidationCustomRegexMessage.
dataSyncTag
stringdataSyncTag.
isReadOnly
boolGets or sets a value indicating whether is read only mode.
TextBoxField(string, int, Rectangle, bool, string, FontFamily, int, string, bool, bool, bool, int, int, ValidationType, string, string, string, string)
Initializes a new instance of the TextBoxField class.
[Obsolete("Name is deprecated, please use Id instead")]
public TextBoxField(string name = null, int pageNumber = 0, Rectangle bounds = null, bool isRequired = false, string value = null, FontFamily font = FontFamily.Helvetica, int fontSize = 0, string fontHexColor = null, bool isBoldFont = false, bool isItalicFont = false, bool isUnderLineFont = false, int lineHeight = 0, int characterLimit = 0, ValidationType validationType = (ValidationType)0, string validationCustomRegex = null, string placeholder = null, string validationCustomRegexMessage = null, string dataSyncTag = null)
Parameters
name
stringname.
pageNumber
intpageNumber.
bounds
Rectanglebounds (required).
isRequired
boolisRequired.
value
stringvalue.
font
FontFamilyfont (required).
fontSize
intfontSize.
fontHexColor
stringfontHexColor.
isBoldFont
boolisBoldFont.
isItalicFont
boolisItalicFont.
isUnderLineFont
boolisUnderLineFont.
lineHeight
intlineHeight.
characterLimit
intcharacterLimit.
validationType
ValidationTypevalidationType.
validationCustomRegex
stringvalidationCustomRegex.
placeholder
stringplaceHolder.
validationCustomRegexMessage
stringvalidationCustomRegexMessage.
dataSyncTag
stringdataSyncTag.
Properties
Placeholder
Gets or Sets Placeholder value
[DataMember(Name = "placeholder", EmitDefaultValue = false)]
public string Placeholder { get; set; }
Property Value
Type
Gets the form field type.It is a read only property.
[DataMember(Name = "fieldType", EmitDefaultValue = true)]
public override FieldType Type { get; set; }
Property Value
ValidationCustomRegex
Gets or Sets ValidationCustomRegex
[DataMember(Name = "validationCustomRegex", EmitDefaultValue = false)]
public string ValidationCustomRegex { get; set; }
Property Value
ValidationCustomRegexMessage
[DataMember(Name = "validationCustomRegexMessage", EmitDefaultValue = false)]
public string ValidationCustomRegexMessage { get; set; }
Property Value
ValidationType
Gets or Sets ValidationType
[DataMember(Name = "validationType", EmitDefaultValue = false)]
public ValidationType ValidationType { get; set; }