Class FieldBeginAdv
Represents the FieldBeginAdv class.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class FieldBeginAdv : FieldCharacterAdv, INode
Examples
The following code example demonstrates how to add a field.
<RichTextBoxAdv:ParagraphAdv>
<!-- Add any number of inlines. -->
<RichTextBoxAdv:FieldBeginAdv />
<!-- Define the field code -->
<RichTextBoxAdv:SpanAdv Text=" HYPERLINK "http://www.google.com" " />
<RichTextBoxAdv:FieldSeparatorAdv/>
<!-- Add inlines for the paragragraph. -->
<!-- Define the field result. -->
<RichTextBoxAdv:SpanAdv Text="Google" >
<RichTextBoxAdv:SpanAdv.CharacterFormat>
<RichTextBoxAdv:CharacterFormat Underline="Single" FontColor="#ff0563c1"/>
</RichTextBoxAdv:SpanAdv.CharacterFormat>
</RichTextBoxAdv:SpanAdv>
<RichTextBoxAdv:FieldEndAdv/>
<!-- Add any number of inlines. -->
</RichTextBoxAdv:ParagraphAdv>
ParagraphAdv paragraph = new ParagraphAdv();
// Adds the field begin.
FieldBeginAdv fieldBegin = new FieldBeginAdv();
paragraph.Inlines.Add(fieldBegin);
// Defines the field code
SpanAdv fieldCode = new SpanAdv();
fieldCode.Text = " HYPERLINK "http://www.google.com" ";
paragraph.Inlines.Add(fieldCode);
// Adds the field separator.
FieldSeparatorAdv fieldSeparatorAdv = new FieldSeparatorAdv();
paragraph.Inlines.Add(fieldSeparatorAdv);
// Defines the field result.
SpanAdv span = new SpanAdv();
span.Text = "Google";
span.CharacterFormat.Underline = Underline.Single;
span.CharacterFormat.FontColor = Color.FromArgb(0xff, 0x05, 0x63, 0xc1);
paragraph.Inlines.Add(span);
// Adds the field end.
FieldEndAdv fieldEndAdv = new FieldEndAdv();
paragraph.Inlines.Add(fieldEndAdv);
Dim paragraph As New ParagraphAdv()
' Adds the field begin.
Dim fieldBeginAdv As New FieldBeginAdv()
paragraph.Inlines.Add(fieldBeginAdv)
' Adds the field code.
Dim fieldCode As New SpanAdv()
fieldCode.Text = " HYPERLINK \"http://www.google.com\" "
paragraph.Inlines.Add(fieldCode)
' Adds the comment start.
Dim fieldSeparatorAdv As New FieldSeparatorAdv()
paragraph.Inlines.Add(fieldSeparatorAdv)
' Adds the comment.
Dim span As New SpanAdv()
span.Text = "Google"
span.CharacterFormat.Underline = Underline.Single
span.CharacterFormat.FontColor = Color.FromArgb(&Hff, &H5, &H63, &Hc1)
paragraph.Inlines.Add(span)
' Defines the field end.
Dim fieldEndAdv As New FieldEndAdv()
paragraph.Inlines.Add(fieldEndAdv)
Constructors
FieldBeginAdv()
Initializes a new instance of the FieldBeginAdv class.
Declaration
public FieldBeginAdv()