Class Canvas
Canvas Class conatins all methods which involve text insertion or mouseclick operations on Word Canvas Client
Inheritance
System.Object
Canvas
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: Quark.XA.Core.AutomationProject.ActionsXA.Utilities
Assembly: Quark.XA.Core.AutomationProject.dll
Syntax
public class Canvas
Constructors
Canvas(ref Application)
Declaration
public Canvas(ref Application application)
Parameters
| Type | Name | Description |
|---|---|---|
| Application | application |
Properties
CursorPosition
Declaration
public CursorPosition CursorPosition { get; }
Property Value
| Type | Description |
|---|---|
| CursorPosition |
Methods
ClearExistingTitle()
Declaration
public void ClearExistingTitle()
GotoCell(Int32)
Declaration
public void GotoCell(int tabNumb)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | tabNumb |
InsertSpecialCharacters(String)
Declaration
public void InsertSpecialCharacters(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
InsertText(String)
Inserts text in every Text Element on word Canvas as Upper Case Characters because of Bug= :#127342
Declaration
public void InsertText(string textfrom)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | textfrom | Input Text |
InsertTextAsScanCode(String)
Inserts text in every element on word Canvas as Lower Case Charaters only
Declaration
public void InsertTextAsScanCode(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | Input Text |
InsertTextInTableCell(String)
Inserts Text inside Single Table Cell
Declaration
public void InsertTextInTableCell(string textfrom)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | textfrom | Input text in Table Cell |
InsertTextInTableCellAsScanCode(String)
Declaration
public void InsertTextInTableCellAsScanCode(string textfrom)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | textfrom |
InsertTextLines(String[])
Inserts multiple lines in the Multiple text elements using Enter Key
Declaration
public void InsertTextLines(params string[] text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | text | Array of lines of Text |
InvokeContextMenu()
Declaration
public void InvokeContextMenu()
SelectContextMenuOption(String[])
Clicks on Context menu Options at each level
Declaration
public void SelectContextMenuOption(params string[] strMenuOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | strMenuOptions | Array of Opions to be Clicked on |
SelectContextMenuOptionUsingMouse(String[])
Declaration
public void SelectContextMenuOptionUsingMouse(params string[] strMenuOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | strMenuOptions |
Setcolumnwidth(Int32, Int32, Int32, Int32)
Declaration
public void Setcolumnwidth(int x1, int y1, int x2, int y2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | x1 | |
| System.Int32 | y1 | |
| System.Int32 | x2 | |
| System.Int32 | y2 |
SetDocumentTitle(String)
Inserts title to the Document on the Place holder
Declaration
public void SetDocumentTitle(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | title | Title of the Document |
SetSectionTitle(String)
Declaration
public void SetSectionTitle(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | title |
VerifyFromClipBoard(String)
Verifies copy operation by comparing Comparison Value to copied text on clipboard
Declaration
public void VerifyFromClipBoard(string comparisonValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | comparisonValue | Comparison Value |
VerifyMenuItemCount(Int32)
Declaration
public void VerifyMenuItemCount(int ItemCount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | ItemCount |
VerifyMenuItemExists(String)
Declaration
public void VerifyMenuItemExists(string ItemName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ItemName |