Class SelectionCharacterFormatModule
Represents the selection character format module in DocumentEditor.
Inherited Members
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public class SelectionCharacterFormatModule
Constructors
SelectionCharacterFormatModule(SfDocumentEditor)
Initializes a new instance of the SelectionCharacterFormatModule class. Default constructor for SelectionCharacterFormat.
Declaration
public SelectionCharacterFormatModule(SfDocumentEditor baseComponent)
Parameters
| Type | Name | Description |
|---|---|---|
| SfDocumentEditor | baseComponent | An DocumentEdiorComponent instance. |
Properties
DocumentEditor
DocumentEdiorComponent instance.
Declaration
protected SfDocumentEditor DocumentEditor { get; set; }
Property Value
| Type |
|---|
| SfDocumentEditor |
Methods
GetBaselineAlignmentAsync()
Gets or sets the baseline alignment property of selected contents.
Declaration
public Task<BaselineAlignment> GetBaselineAlignmentAsync()
Returns
| Type | Description |
|---|---|
| Task<BaselineAlignment> | A Task representing the asynchronous operation. |
GetBoldAsync()
Gets or sets the bold formatting of selected contents.
Declaration
public Task<bool> GetBoldAsync()
Returns
| Type | Description |
|---|---|
| Task<bool> | A Task representing the asynchronous operation. |
GetFontColorAsync()
Gets or sets the font color of selected contents.
Declaration
public Task<string> GetFontColorAsync()
Returns
| Type | Description |
|---|---|
| Task<string> | A Task representing the asynchronous operation. |
GetFontFamilyAsync()
Gets or sets the font family of selected contents.
Declaration
public Task<string> GetFontFamilyAsync()
Returns
| Type | Description |
|---|---|
| Task<string> | A Task representing the asynchronous operation. |
GetFontSizeAsync()
Gets the font size of selected contents.
Declaration
public Task<int> GetFontSizeAsync()
Returns
| Type | Description |
|---|---|
| Task<int> | A Task representing the asynchronous operation. |
GetHighlightColorAsync()
Gets or sets the highlight color of selected contents.
Declaration
public Task<HighlightColor> GetHighlightColorAsync()
Returns
| Type | Description |
|---|---|
| Task<HighlightColor> | A Task representing the asynchronous operation. |
GetItalicAsync()
Gets or sets the italic formatting of selected contents.
Declaration
public Task<bool> GetItalicAsync()
Returns
| Type | Description |
|---|---|
| Task<bool> | A Task representing the asynchronous operation. |
GetStrikethroughAsync()
Gets or sets the strikethrough property of selected contents.
Declaration
public Task<Strikethrough> GetStrikethroughAsync()
Returns
| Type | Description |
|---|---|
| Task<Strikethrough> | A Task representing the asynchronous operation. |
GetUnderlineAsync()
Gets or sets the underline style of selected contents.
Declaration
public Task<Underline> GetUnderlineAsync()
Returns
| Type | Description |
|---|---|
| Task<Underline> | A Task representing the asynchronous operation. |
SetBaselineAlignmentAsync(BaselineAlignment)
Sets the baseline alignment property of selected contents.
Declaration
public void SetBaselineAlignmentAsync(BaselineAlignment value)
Parameters
| Type | Name | Description |
|---|---|---|
| BaselineAlignment | value | Specifies the baseline alignment. |
SetBoldAsync(bool)
Sets the bold formatting of selected contents.
Declaration
public void SetBoldAsync(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | Specifies the bold format. |
SetFontColorAsync(string)
Sets the font color of selected contents.
Declaration
public void SetFontColorAsync(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Specifies the font color. |
SetFontFamilyAsync(string)
Sets the font family of selected contents.
Declaration
public void SetFontFamilyAsync(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Specifies the font family. |
SetFontSizeAsync(int)
Sets the font size of selected contents.
Declaration
public void SetFontSizeAsync(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | Specifies the font size. |
SetHighlightColorAsync(HighlightColor)
Sets the highlight color of selected contents.
Declaration
public void SetHighlightColorAsync(HighlightColor value)
Parameters
| Type | Name | Description |
|---|---|---|
| HighlightColor | value | Specifies the highlight color. |
SetItalicAsync(bool)
Sets the italic formatting of selected contents.
Declaration
public void SetItalicAsync(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | Specifies the italic format. |
SetStrikethroughAsync(Strikethrough)
Sets the strikethrough property of selected contents.
Declaration
public void SetStrikethroughAsync(Strikethrough value)
Parameters
| Type | Name | Description |
|---|---|---|
| Strikethrough | value | Specifies the strikethrough. |
SetUnderlineAsync(Underline)
Sets the underline style of selected contents.
Declaration
public void SetUnderlineAsync(Underline value)
Parameters
| Type | Name | Description |
|---|---|---|
| Underline | value | Specifies the underline format. |