Class InkToolbar.InkToolbarColorFlyoutBase
Defines a base for a color flyout in the InkToolbar.
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public abstract class InkToolbarColorFlyoutBase : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceInkToolbarColorFlyoutBase(WindowsElement)
Initializes a new instance of the InkToolbar.InkToolbarColorFlyoutBase class.
Declaration
protected InkToolbarColorFlyoutBase(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceColorGridView
Gets the element associated with the color grid.
Declaration
public virtual GridView ColorGridView { get; }
Property Value
Type | Description |
---|---|
GridView |
SelectedColor
Gets the currently selected color.
Declaration
public virtual string SelectedColor { get; }
Property Value
Type | Description |
---|---|
System.String |
Exceptions
Type | Condition |
---|---|
ElementNotShownException | Thrown when an element is not shown for the expected locator. |
SelectedSize
Gets the currently selected size.
Declaration
public virtual double SelectedSize { get; }
Property Value
Type | Description |
---|---|
System.Double |
SizeSlider
Gets the element associated with the size of the ink.
Declaration
public virtual Slider SizeSlider { get; }
Property Value
Type | Description |
---|---|
Slider |
Methods
| Improve this Doc View SourceSetColor(String)
Sets the color of the ink.
Declaration
public virtual void SetColor(string color)
Parameters
Type | Name | Description |
---|---|---|
System.String | color | The color to select. |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |
SetColorByPartialName(String)
Sets the color of the ink by partial color name match.
Declaration
public virtual void SetColorByPartialName(string partialColor)
Parameters
Type | Name | Description |
---|---|---|
System.String | partialColor | The partial color name to select. |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |