Class SelectionAdv
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.RichTextBoxAdv.WPF.dll
Syntax
public class SelectionAdv : DependencyObject
Constructors
SelectionAdv()
Initializes the new instance of SelectionAdv
Declaration
public SelectionAdv()
SelectionAdv(RichTextBoxAdv)
Initializes the new instance of SelectionAdv
Declaration
public SelectionAdv(RichTextBoxAdv ownerControl)
Parameters
Type | Name | Description |
---|---|---|
RichTextBoxAdv | ownerControl |
Fields
SelectionFillColorProperty
Gets or Sets the FillColorProperty dependency property
Declaration
public static readonly DependencyProperty SelectionFillColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectionStrokeColorProperty
Gets or Sets the FillColorProperty dependency property
Declaration
public static readonly DependencyProperty SelectionStrokeColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TextProperty
Gets or Sets the TextProperty dependency property
Declaration
public static readonly DependencyProperty TextProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
End
Gets the end position of the selection
Declaration
public TextPosition End { get; }
Property Value
Type |
---|
TextPosition |
IsCellSelected
Declaration
public bool IsCellSelected { get; set; }
Property Value
Type |
---|
System.Boolean |
OwnerControl
Gets or Sets the owner control
Declaration
public RichTextBoxAdv OwnerControl { get; set; }
Property Value
Type |
---|
RichTextBoxAdv |
SelectionFillColor
Gets or Sets the fill color
Declaration
public Brush SelectionFillColor { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectionStrokeColor
Gets or Sets the stroke value
Declaration
public Brush SelectionStrokeColor { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
Start
Gets the start position of the selection
Declaration
public TextPosition Start { get; }
Property Value
Type |
---|
TextPosition |
Text
Gets or Sets the selected Text
Declaration
public string Text { get; }
Property Value
Type |
---|
System.String |
Methods
Bold()
Toggles bold for the selection
Declaration
public void Bold()
Bold(FontWeight)
Toggles bold for the selection
Declaration
public void Bold(FontWeight fontweight)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FontWeight | fontweight |
CanMerge()
Declaration
public bool CanMerge()
Returns
Type |
---|
System.Boolean |
ChangeAfterSpacing(Double)
After Spacing to current Paragraph.
Declaration
public void ChangeAfterSpacing(double spacingValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | spacingValue | The spacing value. |
ChangeBeforeSpacing(Double)
before Spacing to current Paragraph.
Declaration
public void ChangeBeforeSpacing(double spacingValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | spacingValue | The spacing value. |
ChangeDoubleStrikeThrough()
Toggles the double strike through
Declaration
public void ChangeDoubleStrikeThrough()
ChangeDoubleStrikeThrough(Boolean)
Toggles the double strike through
Declaration
public void ChangeDoubleStrikeThrough(bool isStrikeThrough)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isStrikeThrough |
ChangeFontFamily(FontFamily)
Declaration
public void ChangeFontFamily(FontFamily fontFamily)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.FontFamily | fontFamily |
ChangeFontSize(Double)
Changes font size
Declaration
public void ChangeFontSize(double fontSize)
Parameters
Type | Name | Description |
---|---|---|
System.Double | fontSize |
ChangeForeground(Color)
Changes the foreground
Declaration
public void ChangeForeground(Color brush)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.Color | brush |
ChangeHighlightColor(Color)
Changes the foreground
Declaration
public void ChangeHighlightColor(Color brush)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.Color | brush |
ChangeLeftIndent(Double)
Changes the left indent.
Declaration
public void ChangeLeftIndent(double indentValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | indentValue | The indent value. |
ChangeLineSpacing(Double)
Changes the line spacing.
Declaration
public void ChangeLineSpacing(double lineSpaceValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | lineSpaceValue |
ChangeListType(ListType)
Declaration
public void ChangeListType(ListType listType)
Parameters
Type | Name | Description |
---|---|---|
ListType | listType |
ChangeRightIndent(Double)
Changes the right indent.
Declaration
public void ChangeRightIndent(double indentValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | indentValue | The indent value. |
ChangeSingleStrikeThrough()
Toggles the single strike through
Declaration
public void ChangeSingleStrikeThrough()
ChangeSingleStrikeThrough(Boolean)
Toggles the single strike through
Declaration
public void ChangeSingleStrikeThrough(bool isStrikeThrough)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isStrikeThrough |
ChangeSubscript()
Toggles the subscript
Declaration
public void ChangeSubscript()
ChangeSubscript(Boolean)
Declaration
public void ChangeSubscript(bool isSubScript)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isSubScript |
ChangeSuperscript()
Toggles the superscript
Declaration
public void ChangeSuperscript()
ChangeSuperscript(Boolean)
Toggles the superscript
Declaration
public void ChangeSuperscript(bool isSuperScript)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isSuperScript |
ChangeTextAlignment(TextAlignment)
Changes the text alignment.
Declaration
public void ChangeTextAlignment(TextAlignment textAlignment)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.TextAlignment | textAlignment | The text alignment. |
ChangeUnderline()
Toggles the strike through
Declaration
public void ChangeUnderline()
ChangeUnderline(Boolean)
Toggles the strike through
Declaration
public void ChangeUnderline(bool isUnderLine)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isUnderLine |
Copy()
Sets the text in clipboard
Declaration
public void Copy()
Cut()
Cuts the selected texts
Declaration
public void Cut()
DecreaseIndent(Double)
Changes the right indent.
Declaration
public void DecreaseIndent(double indentValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | indentValue | The indent value. |
Italic()
Toggles italic for the selection
Declaration
public void Italic()
Italic(FontStyle)
Toggles italic for the selection
Declaration
public void Italic(FontStyle fontstyle)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FontStyle | fontstyle |
Paste()
Pastes the selected text
Declaration
public void Paste()
SelectAll()
Selects the content of the whole page
Declaration
public void SelectAll()