Click or drag to resize

TextFormField Class

Represents a text input form field.
Inheritance Hierarchy

Namespace: Spire.Doc.Fields
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class TextFormField : FormField

The TextFormField type exposes the following members.

Constructors
Name Description
Public method TextFormField
Initializes a new instance of the TextFormField class.
Top
Properties
Name Description
Public property CalculateOnExit
Gets or sets calculate on exit property.
(Inherited from FormField .)
Public property CharacterFormat
Gets the character format.
(Inherited from ParagraphBase .)
Public property ChildObjects
Gets the child objects of the entity.
(Inherited from ParagraphBase .)
Public property Code
Gets or sets the field code.
(Inherited from Field .)
Public property DefaultText
Gets or sets default text for text form field.
Public property DeleteRevision
Gets the delete revision for this objects. Note this can be null. If null does not have delete revision.
(Inherited from ParagraphBase .)
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property DocumentObjectType
Gets the type of the document object.
(Overrides Field DocumentObjectType .)
Public property Enabled
Get/sets Enabled property (true if form field enabled).
(Inherited from FormField .)
Public property End
Gets or sets the field end.
(Inherited from Field .)
Public property FieldText
Gets or Sets Filed Displays text information.
(Inherited from Field .)
Public property FirstChild
Gets the first child of the Element.
(Inherited from DocumentObject .)
Public property FormFieldType
Gets type of this form field.
(Inherited from FormField .)
Public property Help
Gets or sets form field help.
(Inherited from FormField .)
Public property InsertRevision
Gets the insert revision for this objects. Note this can be null. If null does not have insert revision.
(Inherited from ParagraphBase .)
Public property IsComposite
Indicating whether this instance is composite.
(Inherited from DocumentObject .)
Public property IsDeleteRevision
Gets or set a value indicating whether this item was deleted from the document, when "Track Changes" is or was set to "true".
(Inherited from ParagraphBase .)
Public property IsInsertRevision
Gets a value indicating whether this item was inserted to the document, when "Track Changes" is or was set to "true".
(Inherited from ParagraphBase .)
Public property IsLocked
Gets or sets the lock property of the filed.if the field is locked,the field can't be updated.
(Inherited from Field .)
Public property LastChild
Gets the last child of the Element.
(Inherited from DocumentObject .)
Public property MacroOnEnd
Returns or setsthe name of macros on end
(Inherited from FormField .)
Public property MacroOnStart
Returns or setsthe name of macros on start
(Inherited from FormField .)
Public property MaximumLength
Gets or sets maximum text length.
Public property Name
Gets or sets form field title name (bookmark name). The name is unique in the document.
(Inherited from FormField .)
Public property NextSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public property Owner
Gets the owner of this entity.
(Inherited from DocumentObject .)
Public property OwnerParagraph
Gets owner paragraph.
(Inherited from ParagraphBase .)
Public property Pattern
Returns or sets field pattern.
(Inherited from Field .)
Public property PreviousSibling
Gets the previous sibling.
(Inherited from DocumentObject .)
Public property Separator
Gets or sets the field separator.
(Inherited from Field .)
Public property StatusBarHelp
Gets or sets the status bar help.
(Inherited from FormField .)
Public property StringFormat
Gets or sets string text format (text, date/time, number) directly.
Public property StyleName
Gets the style name.
(Inherited from ParagraphBase .)
Public property Text
Returns or setsthe text of text form field.
(Overrides TextRange Text .)
Public property TextFieldType
Get/sets text form field type.
Public property TextFormat
Gets or sets regular text format.
(Inherited from Field .)
Public property TextRange
Gets or sets form field text range;
Public property Type
Returns or sets field type
(Inherited from Field .)
Public property Value
Gets the field value.
(Inherited from Field .)
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Public method ApplyCharacterFormat
Applies the specified character format to the current object.
(Inherited from ParagraphBase .)
Public method ApplyStyle
Applies the specified character style to the current object. If the specified style does not exist and the style name is "default paragraph font", a new built-in style is created and added to the document. If the specified style still cannot be found, an ArgumentException is thrown.
(Inherited from ParagraphBase .)
Public method Clone
Creates a duplicate of the document object.
(Inherited from DocumentObject .)
Protected method CloneImpl (Overrides FormField CloneImpl .)
Protected method ConvertSwitchesToString (Inherited from Field .)
Protected method CreateLayoutInfo (Overrides Field CreateLayoutInfo .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Protected method GetCultureInfo (Inherited from Field .)
Protected method GetCultureInfo(Int32) (Inherited from Field .)
Public method GetFieldCode
Gets the field code.
(Inherited from Field .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetNextWidgetSibling
Gets the next widget sibling.
(Inherited from ParagraphBase .)
Public method GetPreviousWidgetSibling
Gets the previous widget sibling.
(Inherited from ParagraphBase .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method InitXDLSHolder (Overrides TextRange InitXDLSHolder .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ParseField (Inherited from Field .)
Protected method ParseFieldCode (Inherited from Field .)
Protected method ParseFieldFormat (Inherited from Field .)
Protected method ReadXmlAttributes (Overrides FormField ReadXmlAttributes(IXDLSAttributeReader) .)
Protected method ReadXmlContent (Inherited from TextRange .)
Protected method RestoreReference (Inherited from DocumentSerializable .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method ToString(String)
Exports the name and index in container of the object into a string in the specified seperator.
(Inherited from DocumentObject .)
Public method Update
Update the result of the field. Can only be simpler field. Direct calls cannot update the NumPages field and Page field, ect.
(Inherited from Field .)
Protected method UpdateFieldCode (Inherited from Field .)
Protected method WriteXmlAttributes (Overrides FormField WriteXmlAttributes(IXDLSAttributeWriter) .)
Protected method WriteXmlContent (Inherited from TextRange .)
Top
Fields
Name Description
Protected field m_bConvertedToText (Inherited from Field .)
Protected field m_curFormFieldType (Inherited from FormField .)
Protected field m_doc (Inherited from OwnerHolder .)
Protected field m_fieldType (Inherited from Field .)
Protected field m_fieldValue (Inherited from Field .)
Protected field m_formattingString (Inherited from Field .)
Protected field m_paraItemType (Inherited from Field .)
Protected field m_textFormat (Inherited from Field .)
Top
See Also