Click or drag to resize
ShapeTool Class
Represents a tool which draws shapes over an image.
Inheritance Hierarchy

Namespace: Telerik.Windows.Media.Imaging.Tools
Assembly: Telerik.Windows.Controls.ImageEditor (in Telerik.Windows.Controls.ImageEditor.dll) Version: 2017.2.614.40 (2017.2.614.40)
public class ShapeTool : DrawToolBase

The ShapeTool type exposes the following members.

Public methodShapeTool
Initializes a new instance of the ShapeTool class.
Public methodAttachUI
Attaches the UI. The method is invoked on tool's execution.
(Inherited from DrawToolBase.)
Public methodDetachUI
Detaches the UI. The method is invoked when the tool execution is canceled.
(Inherited from DrawToolBase.)
Protected methodDraw
Draws a shape geometry.
(Overrides DrawToolBaseDraw(Point).)
Protected methodEndDraw
Ends the drawing of a geometry.
(Overrides DrawToolBaseEndDraw(Point).)
Public methodGetCommand
Gets the tool's associated command.
(Inherited from DrawToolBase.)
Public methodGetContext
Gets the tool's command context.
(Inherited from DrawToolBase.)
Public methodGetSettingsUI
Gets the tool' settings UI.
(Overrides ToolBaseGetSettingsUI.)
Public methodResetSettings
Resets the tool' settings if the tool's IsResetSettingsSupported property is true.
(Overrides DrawToolBaseResetSettings.)
Protected methodSetPathProperties
Sets properties to the path which contains the geometry which shall be drawn.
(Overrides DrawToolBaseSetPathProperties(Path).)
Protected methodStartDraw
Starts the drawing of a geometry.
(Inherited from DrawToolBase.)
Public propertyAffectsLayout
Gets whether the tool is changing the image size.
(Inherited from DrawToolBase.)
Public propertyIsDirty
Gets whether the tool has made any changes on the image.
(Overrides ToolBaseIsDirty.)
Public propertyIsPreviewOverlay
Gets whether the tool has a preview overlay on the main image.
(Inherited from DrawToolBase.)
Public propertyIsResetSettingsSupported
Specifies whether the settings of a tool can be reset. The common implementation of a tool returns true.
(Inherited from DrawToolBase.)
Public propertyShapes
Gets or sets the shapes.
See Also