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

Represents the base class for commands related to shape context in the RichTextBox.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public abstract class ShapeContextCommandBase : RichTextBoxCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseShapeContextCommandBase

Derived Classes: ChangeRotateTextWithShapeCommandChangeShapeAutoFitToTextCommandChangeShapeFillCommandChangeShapeOutlineDashCommandChangeShapeOutlineFillCommandChangeShapeOutlineWidthCommandChangeShapeTextBottomMarginCommandChangeShapeTextFillCommandChangeShapeTextLeftMarginCommandChangeShapeTextOutlineDashCommandChangeShapeTextOutlineFillCommandChangeShapeTextOutlineWidthCommandChangeShapeTextRightMarginCommandChangeShapeTextRotationCommandChangeShapeTextTopMarginCommandChangeShapeTextVerticalAlignmentCommandChangeShapeTextWrapCommandChangeShapeWrappingStyleCommandConvertFloatingShapeToShapeInlineCommandInsertTextBoxCommand...

Implements: ICommand

Inherited Members RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.CanExecuteOverride(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.ExecuteOverride(object)RichTextBoxCommandBase.UpdateSpanStyle()RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged...

Constructors

C#
public ShapeContextCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

Methods

Determines whether the shape context command can be executed on the specified document.

C#
public static bool CanExecuteShapeContextCommand(RadDocument doc)
Parameters:docRadDocument

The RadDocument on which the shape context command is evaluated.

Returns:

bool

True if the command can be executed; otherwise, false.