SelectionTool
Definition
Namespace:Telerik.Windows.Media.Imaging.Tools
Assembly:Telerik.Windows.Controls.ImageEditor.dll
Syntax:
public class SelectionTool : DrawTool, ITool
Inheritance: objectToolBaseDrawToolBaseDrawToolSelectionTool
Implements:
Inherited Members
Constructors
Initializes a new instance of the SelectionTool class.
public SelectionTool()
Properties
Gets whether the tool has made any changes on the image.
public override bool IsDirty { get; }
Indicates is there any changes.
Overrides:
Specifies whether the settings of a tool can be reset. The common implementation of a tool returns true.
public override bool IsResetSettingsSupported { get; }
Indicates whether the settings can be reseted.
Overrides:
Gets or sets the shapes.
public ObservableCollection<IShape> SelectionShapes { get; }
The shapes.
Methods
Attaches the UI. The method is invoked on tool's execution.
public override void AttachUI(ToolInitInfo previewInitInfo)
The preview init info.
Overrides:
Detaches the UI. The method is invoked when the tool execution is canceled.
public override void DetachUI()
Overrides:
Draws a geometry.
protected override void Draw(Point currentPoint)
The current point related to the image.
Overrides:
Ends the drawing of a geometry.
protected override void EndDraw(Point currentPoint)
The current point related to the image.
Overrides:
Gets the tool's associated command.
Gets the tool's command context.
Gets the tool' settings UI.
public override UIElement GetSettingsUI()
UIElement
The UI settings.
Overrides:
Resets the tool' settings if the tool's IsResetSettingsSupported property is true.
public override void ResetSettings()
Overrides:
Sets properties to the path which contains the geometry which shall be drawn.
protected override void SetPathProperties(Path path)
The path.
Overrides:
Starts the drawing of the selection geometry.
protected override void StartDraw(Point currentPoint)
The current point related to the image.
Overrides: