Click or drag to resize

Field Class

Represents a field within a document, inheriting from TextRange.
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 Field : TextRange, IField, 
	ITextRange, IParagraphBase, IDocumentObject

The Field type exposes the following members.

Constructors
Name Description
Public method Field
Creates Field object for specified document
Top
Properties
Name Description
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.
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 TextRange DocumentObjectType .)
Public property End
Gets or sets the field end.
Public property FieldText
Gets or Sets Filed Displays text information.
Public property FirstChild
Gets the first child of the Element.
(Inherited from DocumentObject .)
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.
Public property LastChild
Gets the last child of the Element.
(Inherited from DocumentObject .)
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.
Public property PreviousSibling
Gets the previous sibling.
(Inherited from DocumentObject .)
Public property Separator
Gets or sets the field separator.
Public property StyleName
Gets the style name.
(Inherited from ParagraphBase .)
Public property Text
Returns or sets text.
(Inherited from TextRange .)
Public property TextFormat
Gets or sets regular text format.
Public property Type
Returns or sets field type
Public property Value
Gets the field value.
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 TextRange CloneImpl .)
Protected method ConvertSwitchesToString
Protected method CreateLayoutInfo (Overrides TextRange 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
Protected method GetCultureInfo(Int32)
Public method GetFieldCode
Gets the field code.
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 (Inherited from TextRange .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ParseField
Protected method ParseFieldCode
Protected method ParseFieldFormat
Protected method ReadXmlAttributes (Overrides DocumentSerializable 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.
Protected method UpdateFieldCode
Protected method WriteXmlAttributes (Overrides DocumentSerializable WriteXmlAttributes(IXDLSAttributeWriter) .)
Protected method WriteXmlContent (Inherited from TextRange .)
Top
Fields
See Also