Class DocumentSelection
Implements the document selection
Inheritance
Inherited Members
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 |