New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public abstract class RichTextBoxCommandBase : ICommand

Inheritance: objectRichTextBoxCommandBase

Derived Classes: AcceptAllRevisionsCommandAcceptRevisionCommandCancelFormatPainterCommandChangeBibliographicStyleCommandChangeColorCommandBaseChangeFontFamilyCommandChangeFontSizeCommandChangeFormatPainterStateCommandChangeIntegratedWatermarkTypeCommandChangeLayoutModeCommandChangeListStyleCommandChangePageMarginsTypeCommandChangePageOrientationCommandChangePaperTypeCommandChangeParagraphFlowDirectionCommandChangeParagraphListLevelCommandChangeSectionColumnsCommandChangeSectionHeaderFooterMarginBaseChangeStyleNameCommandChangeTextAlignmentCommandChangeUnderlineDecorationCommandClearAllFormattingCommandClearFormattingCommandCommentCommandBaseContinueNumberingCommandCopyFormattingCommandDecrementFontSizeCommandDecrementParagraphLeftIndentCommandDeleteCodeBlockCommandDeleteCommandDrawingContextCommandBaseEditFooterCommandEditHeaderCommandExitHeaderFooterEditModeCommandFieldRangeStartBaseCommandBase<T>GoToNextEndnoteCommandGoToNextFootnoteCommandGoToNextRevisionCommandGoToPreviousEndnoteCommandGoToPreviousFootnoteCommandGoToPreviousRevisionCommandImageContextCommandBaseIncrementFontSizeCommandIncrementParagraphLeftIndentCommandInsertBreakCommandInsertColumnBreakCommandInsertDocumentFragmentCommandInsertEndnoteCommandInsertFieldCommandInsertFootnoteCommandInsertLineBreakCommandInsertLineNumberingCommandInsertNonBreakingSpaceCommandInsertPageBreakCommandInsertPictureCommandInsertSectionBreakCommandInsertStructuredDocumentTagCommandInsertTableCommandInsertTextCommandMailMergeDataSourceContextCommandBaseMergeTableCellsCommandMoveCaretCommandMoveSelectionCommandMultipleUndoCommandNewDocumentCommandOpenContextMenuOnNextSpellingErrorCommandOpenDocumentCommandPasteCommandPasteFormattingCommandPrintCommandPrintPreviewCommandRedoCommandRejectAllRevisionsCommandRejectRevisionCommandRemoveWatermarkCommandRestartNumberingCommandSaveCommandSelectAllCommandSelectionEnabledCommandShowAddNewBibliographicReferenceDialogCommandShowChangeEditingPermissionsDialogCommandShowCodeFormattingDialogCommandShowContentControlPropertiesDialogCommandShowDefineNewListStyleDialogCommandShowFindReplaceDialogCommandShowFontPropertiesDialogCommandShowInsertCaptionDialogCommandShowInsertCrossReferenceWindowCommandShowInsertDateTimeDialogCommandShowInsertHyperlinkDialogCommandShowInsertSymbolWindowCommandShowInsertTableDialogCommandShowInsertTableOfContentsDialogCommandShowLineNumberingDialogCommandShowManageBibliographicSourcesDialogCommandShowManageBookmarksDialogCommandShowManageStylesDialogCommandShowNotesDialogCommandShowParagraphPropertiesDialogCommandShowSectionColumnsDialogCommandShowSetNumberingValueDialogCommandShowSpellCheckingDialogCommandShowStyleFormattingPropertiesDialogCommandShowTabStopsPropertiesDialogCommandShowWatermarkSettingsDialogCommandSuppressLineNumberingForCurrentParagraphCommandTabBackwardCommandTabForwardCommandTableContextCommandBaseToggleCommandBaseUndoCommandUpdateAllFieldsCommand...

Implements: ICommand

Constructors

C#
public RichTextBoxCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

Properties

Gets the associated rich text box.

C#
public RadRichTextBox AssociatedRichTextBox { get; }
Property Value:

The associated rich text box.

Gets a value indicating whether the behavior of the command can be executed in a protected document.

C#
protected virtual CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Gets a value indicating whether this command can be executed when RadRichTextBox is read-only. The default implementation returns false.

C#
protected virtual bool CanExecuteInReadOnlyMode { get; }
Property Value:

true if this command preserves document's content; otherwise, false.

Gets a value indicating whether this command can be executed when editing context is read-only. The default implementation returns false.

C#
protected virtual bool CanExecuteInReadOnlyRange { get; }

Gets or sets a value indicating whether the command is enabled.

C#
public bool Enabled { get; set; }
C#
protected virtual bool IsDeletingCommand { get; }
C#
protected virtual bool ShouldFocusCaretAfterExecute { get; }

Gets the supported CommandTargets for the command.

C#
protected virtual CommandTargets SupportedTargets { get; }

Methods

C#
public bool CanExecute(object parameter)
Parameters:parameterobjectReturns:

bool

Implements: ICommand.CanExecute(object)

Performs a check whether the command can be executed specific to the command.

C#
protected virtual bool CanExecuteOverride(object parameter)
Parameters:parameterobject

The command parameter.

Returns:

bool

C#
public void Execute()
C#
public void Execute(object parameter, bool focusCaret)
Parameters:parameterobjectfocusCaretbool
C#
public void Execute(object parameter)
Parameters:parameterobject

Implements: ICommand.Execute(object)

Performs the execute action specific to the command.

C#
protected abstract void ExecuteOverride(object parameter)
Parameters:parameterobject

The command parameter.

C#
protected Paragraph GetCurrentParagraphStyle()
Returns:

Paragraph

C#
protected Section GetCurrentSectionStyle()
Returns:

Section

C#
protected Span GetCurrentSpanStyle()
Returns:

Span

C#
public Inline GetSelectedInlineOrSelectCurrent()
Returns:

Inline

C#
protected void OnCanExecuteChanged()
C#
protected virtual void UpdateSectionStyle()
C#
protected virtual void UpdateSpanStyle()

Events

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged