Search Results for

    Show / Hide Table of Contents

    Class DocumentSelection

    Implements the document selection

    Inheritance
    System.Object
    DocumentSelection
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.TranslationStudioAutomation.IntegrationApi
    Assembly: Sdl.TranslationStudioAutomation.IntegrationApi.dll
    Syntax
    public class DocumentSelection

    Properties

    Current

    Get the current source or target selection

    Declaration
    public AbstractContentSelection Current { get; }
    Property Value
    Type Description
    AbstractContentSelection

    Source

    Get the source document selection

    Declaration
    public SourceSelection Source { get; }
    Property Value
    Type Description
    SourceSelection

    Target

    Get the target document selection

    Declaration
    public TargetSelection Target { get; }
    Property Value
    Type Description
    TargetSelection

    Methods

    CanCopy()

    Returns true if the current selection can be copied.

    Declaration
    public bool CanCopy()
    Returns
    Type Description
    System.Boolean

    True if the selection can by copied.

    CanCut()

    Returns true if the current selection can be cut from the document.

    Declaration
    public bool CanCut()
    Returns
    Type Description
    System.Boolean

    True if the selection can by cut.

    CanPaste()

    Returns true if the current clipboard content can be pasted into the document, replacing the current selection.

    Declaration
    public bool CanPaste()
    Returns
    Type Description
    System.Boolean

    True if the selection can by pasted.

    Copy()

    Copies to the current selection to the clipboard.

    Declaration
    public void Copy()

    Cut()

    Cuts the current selection.

    Declaration
    public void Cut()

    IsLocked()

    Get the locking state of the selection.

    Declaration
    public bool IsLocked()
    Returns
    Type Description
    System.Boolean

    Returns true if the selection is locked.

    Lock()

    Locks the current selection (disable the selection for edit).

    Declaration
    public void Lock()

    Paste()

    Pastes the current clipboard content, replacing the current selection.

    Declaration
    public void Paste()

    Unlock()

    Unlocks the current selection (enable the selection for edit).

    Declaration
    public void Unlock()

    Events

    Changed

    Triggered when the selection has changed

    Declaration
    public event EventHandler Changed
    Event Type
    Type Description
    System.EventHandler

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Properties
      • Current
      • Source
      • Target
    • Methods
      • CanCopy()
      • CanCut()
      • CanPaste()
      • Copy()
      • Cut()
      • IsLocked()
      • Lock()
      • Paste()
      • Unlock()
    • Events
      • Changed
    • Extension Methods
    Back to top Generated by DocFX