FieldSymbol
Overview
FieldSymbol is a class in Aspose.Words FOSS for .NET.
Inherits from: Field, IFieldCodeTokenInfoProvider.
Implements a SYMBOL field.
This class provides 4 methods for working with FieldSymbol objects in .NET programs.
Available methods include: GetFieldCode, Remove, Unlink, Update.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: CharacterCode, DisplayResult, DontAffectsLineSpacing, End, FontName, FontSize, and 11 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
CharacterCode | string | Read/Write | Gets or sets the character’s code point value in decimal or hexadecimal. |
FontName | string | Read/Write | Gets or sets the name of the font of the character retrieved by the field. |
FontSize | string | Read/Write | Gets or sets the size in points of the font of the character retrieved by the field. |
IsAnsi | bool | Read/Write | Gets or sets whether the character code is interpreted as the value of an ANSI character. |
IsUnicode | bool | Read/Write | Gets or sets whether the character code is interpreted as the value of a Unicode character. |
IsShiftJis | bool | Read/Write | Gets or sets whether the character code is interpreted as the value of a SHIFT-JIS character. |
DontAffectsLineSpacing | bool | Read/Write | Gets or sets whether the character retrieved by the field affects the line spacing of the paragraph. |
Start | FieldStart | Read | Gets the node that represents the start of the field. |
Separator | FieldSeparator | Read | Gets the node that represents the field separator. |
End | FieldEnd | Read | Gets the node that represents the field end. |
Type | FieldType | Read | Gets the Microsoft Word field type. |
Result | string | Read/Write | Gets or sets text that is between the field separator and field end. |
DisplayResult | string | Read | Gets the text that represents the displayed field result. |
IsLocked | bool | Read/Write | Gets or sets whether the field is locked (should not recalculate its result). |
IsDirty | bool | Read/Write | Gets or sets whether the current result of the field is no longer correct (stale) due to other modifications made to the document. |
Format | FieldFormat | Read | Gets a FieldFormat object that provides typed access to field’s formatting. |
LocaleId | int | Read/Write | Gets or sets the LCID of the field. |
Methods
| Signature | Description |
|---|---|
GetFieldCode() | Returns text between field start and field separator (or field end if there is no separator). |
Remove() | Removes the field from the document. |
Update() | Performs the field update. |
Unlink() | Performs the field unlink. |