VintaSoft Imaging .NET SDK 12.3: Documentation for .NET developer
Vintasoft.Imaging.Wpf.UI.VisualTools Namespace / WpfRectangularSelectionToolWithCopyPaste Class
Members Object Syntax Remarks Hierarchy Requirements SeeAlso
In This Topic
    WpfRectangularSelectionToolWithCopyPaste Class
    In This Topic
    Visual tool for selection of rectangular region of image in image viewer. Selected region of image can be copied into clipboard. Selected region of image can be replaced by image from clipboard.
    Object Model
    IWpfInteractionController IWpfInteractionController WpfRectangularObjectTransformer IObjectClipboard WpfImageViewer WpfRectangularSelectionToolWithCopyPaste
    Syntax
    'Declaration
    
    <ToolboxItemAttribute("ToolboxItemType = null", "ToolboxItemTypeName = ")>
    <DesignTimeVisibleAttribute("Visible = False")>
    <DefaultPropertyAttribute("Content")>
    <ContentPropertyAttribute("Content")>
    <LocalizabilityAttribute(None)>
    <StyleTypedPropertyAttribute("Property = FocusVisualStyle", "StyleTargetType = System.Windows.Controls.Control")>
    <XmlLangPropertyAttribute("Name = Language")>
    <UsableDuringInitializationAttribute("Usable = True")>
    <RuntimeNamePropertyAttribute("Name = Name")>
    <UidPropertyAttribute()>
    <TypeDescriptionProviderAttribute("TypeName = MS.Internal.ComponentModel.DependencyObjectProvider")>
    <NameScopePropertyAttribute("Name = NameScope", "Type = System.Windows.NameScope")>
    Public Class WpfRectangularSelectionToolWithCopyPaste
       Inherits WpfRectangularSelectionTool
    
    
    [ToolboxItem("ToolboxItemType = null", "ToolboxItemTypeName = ")]
    [DesignTimeVisible("Visible = False")]
    [DefaultProperty("Content")]
    [ContentProperty("Content")]
    [Localizability(None)]
    [StyleTypedProperty("Property = FocusVisualStyle", "StyleTargetType = System.Windows.Controls.Control")]
    [XmlLangProperty("Name = Language")]
    [UsableDuringInitialization("Usable = True")]
    [RuntimeNameProperty("Name = Name")]
    [UidProperty()]
    [TypeDescriptionProvider("TypeName = MS.Internal.ComponentModel.DependencyObjectProvider")]
    [NameScopeProperty("Name = NameScope", "Type = System.Windows.NameScope")]
    public class WpfRectangularSelectionToolWithCopyPaste : WpfRectangularSelectionTool
    
    
    [ToolboxItem("ToolboxItemType = null", "ToolboxItemTypeName = ")]
    [DesignTimeVisible("Visible = False")]
    [DefaultProperty("Content")]
    [ContentProperty("Content")]
    [Localizability(None)]
    [StyleTypedProperty("Property = FocusVisualStyle", "StyleTargetType = System.Windows.Controls.Control")]
    [XmlLangProperty("Name = Language")]
    [UsableDuringInitialization("Usable = True")]
    [RuntimeNameProperty("Name = Name")]
    [UidProperty()]
    [TypeDescriptionProvider("TypeName = MS.Internal.ComponentModel.DependencyObjectProvider")]
    [NameScopeProperty("Name = NameScope", "Type = System.Windows.NameScope")]
    public __gc class WpfRectangularSelectionToolWithCopyPaste : public WpfRectangularSelectionTool*
    
    
    [ToolboxItem("ToolboxItemType = null", "ToolboxItemTypeName = ")]
    [DesignTimeVisible("Visible = False")]
    [DefaultProperty("Content")]
    [ContentProperty("Content")]
    [Localizability(None)]
    [StyleTypedProperty("Property = FocusVisualStyle", "StyleTargetType = System.Windows.Controls.Control")]
    [XmlLangProperty("Name = Language")]
    [UsableDuringInitialization("Usable = True")]
    [RuntimeNameProperty("Name = Name")]
    [UidProperty()]
    [TypeDescriptionProvider("TypeName = MS.Internal.ComponentModel.DependencyObjectProvider")]
    [NameScopeProperty("Name = NameScope", "Type = System.Windows.NameScope")]
    public ref class WpfRectangularSelectionToolWithCopyPaste : public WpfRectangularSelectionTool^
    
    
    Remarks

    WpfRectangularSelectionToolWithCopyPaste allows to:

    • Select a rectangular region of image
    • Copy selected region of image to clipboard or get selected region as a Bitmap object
    • Paste image from clipboard into selected region of image


    Rectangular region of image in image viewer can be selected as follows:
    • place the mouse on desired position
      press and hold the action button (ActionButton) to start the selection of region
      release the action button (ActionButton) to stop the selection of region

  • Selected region of image can be copied to clipboard by pressing Ctrl+C button.
    Selected region of image can be replaced by image from clipboard by pressing Ctrl+V button.


    Rectangular region of image in image viewer can be programmatically selected with Rectangle property.
    Selected region of image can be programmatically copied to clipboard using CopyToClipboard.
    Selected region of image can be programmatically replaced by image from clipboard using PasteFromClipboard.


    Rectangular region of image in image viewer can be programmatically selected with Rectangle property.

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         System.Windows.Controls.ContentControl
                            Vintasoft.Imaging.Wpf.UI.VisualTools.WpfVisualTool
                               Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfUserInteractionVisualTool
                                  Vintasoft.Imaging.Wpf.UI.VisualTools.WpfRectangularSelectionTool
                                     Vintasoft.Imaging.Wpf.UI.VisualTools.WpfRectangularSelectionToolWithCopyPaste

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also