Class
HtmlCanvas

Test class for an HtmlCanvas element <canvas>...</canvas>

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class HtmlCanvas : HtmlContainerControl

Inheritance: objectControlHtmlControlHtmlContainerControlHtmlCanvas

Inherited Members HtmlContainerControl.TextContentHtmlContainerControl.InnerTextHtmlControl.FindParentContainer<TContainerControl>()HtmlControl.ValidateTag(string)HtmlControl.ValidateControl()HtmlControl.ParseResponseValue<T>(string, T)HtmlControl.GetAttributeAsString(string)HtmlControl.InitializeMappings(MappingsCollection)HtmlControl.GetRectangle()HtmlControl.IsVisible()HtmlControl.GetStyleValue(string)HtmlControl.GetStyle(string)HtmlControl.GetComputedStyleValue(string)HtmlControl.GetComputedStyle(string)HtmlControl.Parent<TContainerControl>()HtmlControl.Capture()HtmlControl.Capture(string, string)HtmlControl.Capture(string)HtmlControl.InvokeEvent(ScriptEventType)HtmlControl.InvokeEvent(ScriptEventType, bool)HtmlControl.InvokeEvent(ScriptEvent)HtmlControl.InvokeEvent(ScriptEvent, bool)HtmlControl.AddEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.RemoveEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.MouseClick()HtmlControl.MouseClick(MouseClickType)HtmlControl.MouseClick(MouseClickType, int, int)HtmlControl.MouseClick(MouseClickType, Point, OffsetReference)HtmlControl.MouseClick(MouseClickType, int, int, OffsetReference)HtmlControl.MouseHover()HtmlControl.MouseHover(Point)HtmlControl.MouseHover(int, int)HtmlControl.MouseHover(int, int, OffsetReference)HtmlControl.Click()HtmlControl.Click(bool)HtmlControl.ScrollToVisible()HtmlControl.ScrollToVisible(ScrollToVisibleType)HtmlControl.ScrollToVisible(ScrollToVisibleType, Rectangle)HtmlControl.Download(bool, DownloadOption, string, int)HtmlControl.CallMethod(string)HtmlControl.CallMethod<T>(string)HtmlControl.CallMethod<T>(string, T)HtmlControl.GetValue<T>(string)HtmlControl.GetValue<T>(string, T)HtmlControl.GetValue<T>(string, bool)HtmlControl.GetValue<T>(string, bool, T)HtmlControl.SetValue<T>(string, T)HtmlControl.SetValue<T>(string, T, bool)HtmlControl.Focus()HtmlControl.DragTo(OffsetReference, Point, int, int)HtmlControl.DragTo(OffsetReference, int, int, Rectangle, OffsetReference, int, int)HtmlControl.DragTo(Point)HtmlControl.DragTo(int, int)HtmlControl.DragTo(HtmlControl)HtmlControl.DragTo(HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, Point, HtmlControl)HtmlControl.DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, int, int, bool, HtmlControl, OffsetReference, int, int, bool)HtmlControl.DragToWindowLocation(OffsetReference, int, int, bool, OffsetReference, int, int, bool)HtmlControl.ToString()HtmlControl.AsjQueryControl()HtmlControl.GetElementByTagNameClientSideLocatorHtmlControl.GetElementByIdClientSideLocatorHtmlControl.FindHtmlControl.ClientSideLocatorHtmlControl.ScrollTopHtmlControl.ScrollLeftHtmlControl.WaitHtmlControl.IDHtmlControl.CssClassHtmlControl.AttributesHtmlControl.MappingsHtmlControl.StylesHtmlControl.EventsHtmlControl.TagNameHtmlControl.ChildNodesHtmlControl.IsActiveElementHtmlControl.IsEnabledControl.Refresh()Control.AssignFailed(Exception)Control.SetTelerikComponentsVersion(TelerikComponentsVersion?)Control.MatchControl(Element, FindParam)Control.GetFamilyElement(int, Element)Control.ThrowOnInvalidAssignmentControl.TelerikComponentsVersionControl.IsRefreshControl.BaseElementControl.OwnerBrowserControl.LocatorControl.LocatorExpression

Constructors

HtmlCanvas()

Create a new control.

Declaration

cs-api-definition
public HtmlCanvas()

HtmlCanvas(Element)

Create a new test control

Declaration

cs-api-definition
public HtmlCanvas(Element e)

Parameters

e

Element

The base element.

Properties

Context2dFillStyle

The the 2d context fillStyle value.

Declaration

cs-api-definition
public string Context2dFillStyle { get; set; }

Property Value

string

Context2dFont

The the 2d context font value.

Declaration

cs-api-definition
public string Context2dFont { get; set; }

Property Value

string

Context2dGlobalAlpha

Get the 2d context global alpha.

Declaration

cs-api-definition
public double Context2dGlobalAlpha { get; set; }

Property Value

double

Context2dGlobalCompositOperation

The the 2d context globalCompositeOperation value.

Declaration

cs-api-definition
public string Context2dGlobalCompositOperation { get; set; }

Property Value

string

Context2dLineCap

The the 2d context lineCap value.

Declaration

cs-api-definition
public string Context2dLineCap { get; set; }

Property Value

string

Context2dLineJoin

The the 2d context lineJoin value.

Declaration

cs-api-definition
public string Context2dLineJoin { get; set; }

Property Value

string

Context2dLineWidth

The the 2d context lineWidth value.

Declaration

cs-api-definition
public double Context2dLineWidth { get; set; }

Property Value

double

Context2dMiterLimit

The the 2d context miterLimit value.

Declaration

cs-api-definition
public double Context2dMiterLimit { get; set; }

Property Value

double

Context2dShadowBlur

The the 2d context shadowBlur value.

Declaration

cs-api-definition
public double Context2dShadowBlur { get; set; }

Property Value

double

Context2dShadowColor

The the 2d context shadowColor value.

Declaration

cs-api-definition
public string Context2dShadowColor { get; set; }

Property Value

string

Context2dShadowOffsetX

The the 2d context shadowOffsetX value.

Declaration

cs-api-definition
public double Context2dShadowOffsetX { get; set; }

Property Value

double

Context2dShadowOffsetY

The the 2d context shadowOffsetY value.

Declaration

cs-api-definition
public double Context2dShadowOffsetY { get; set; }

Property Value

double

Context2dStrokeStyle

The the 2d context strokeStyle value.

Declaration

cs-api-definition
public string Context2dStrokeStyle { get; set; }

Property Value

string

Context2dTextAlign

The the 2d context textAlign value.

Declaration

cs-api-definition
public string Context2dTextAlign { get; set; }

Property Value

string

Context2dTextBaseline

The the 2d context textBaseline value.

Declaration

cs-api-definition
public string Context2dTextBaseline { get; set; }

Property Value

string

Height

Get the canvas height.

Declaration

cs-api-definition
public int Height { get; set; }

Property Value

int

Width

Get the canvas width.

Declaration

cs-api-definition
public int Width { get; set; }

Property Value

int

Methods

AssignElement(Element)

Assign element and initialize this control.

Declaration

cs-api-definition
public override void AssignElement(Element e)

Parameters

e

Element

The base element.

Overrides HtmlContainerControl.AssignElement(Element)

Context2dArc(double, double, double, double, double, bool)

Invoke the 2d context arc method.

Declaration

cs-api-definition
public void Context2dArc(double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise = false)

Parameters

x

double

y

double

radius

double

startAngle

double

endAngle

double

anticlockwise

bool

Context2dArcTo(double, double, double, double, double)

Invoke the 2d context arcTo method.

Declaration

cs-api-definition
public void Context2dArcTo(double x1, double y1, double x2, double y2, double radius)

Parameters

x1

double

y1

double

x2

double

y2

double

radius

double

Context2dBeginPath()

Invoke the 2d context beginPath method.

Declaration

cs-api-definition
public void Context2dBeginPath()

Context2dBezierCurveTo(double, double, double, double, double, double)

Invoke the 2d context bezierCurveTo method.

Declaration

cs-api-definition
public void Context2dBezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)

Parameters

cp1x

double

cp1y

double

cp2x

double

cp2y

double

x

double

y

double

Context2dClearRect(double, double, double, double)

Invoke the 2d context clearRect method.

Declaration

cs-api-definition
public void Context2dClearRect(double x, double y, double w, double h)

Parameters

x

double

y

double

w

double

h

double

Context2dClip()

Invoke the 2d context clip method.

Declaration

cs-api-definition
public void Context2dClip()

Context2dClosePath()

Invoke the 2d context closePath method.

Declaration

cs-api-definition
public void Context2dClosePath()

Context2dFill()

Invoke the 2d context fill method.

Declaration

cs-api-definition
public void Context2dFill()

Context2dFillRect(double, double, double, double)

Invoke the 2d context fillRect method.

Declaration

cs-api-definition
public void Context2dFillRect(double x, double y, double w, double h)

Parameters

x

double

y

double

w

double

h

double

Context2dFillText(string, double, double)

Invoke the 2d context fillText method.

Declaration

cs-api-definition
public void Context2dFillText(string text, double x, double y)

Parameters

text

string

x

double

y

double

Context2dFillText(string, double, double, double)

Invoke the 2d context fillText method.

Declaration

cs-api-definition
public void Context2dFillText(string text, double x, double y, double maxWidth)

Parameters

text

string

x

double

y

double

maxWidth

double

Context2dIsPointInPath(double, double)

Invoke the 2d context isPointInPath method.

Declaration

cs-api-definition
public bool Context2dIsPointInPath(double x, double y)

Parameters

x

double

y

double

Returns

bool

Context2dLineTo(double, double)

Invoke the 2d context lineTo method.

Declaration

cs-api-definition
public void Context2dLineTo(double x, double y)

Parameters

x

double

y

double

Context2dMoveTo(double, double)

Invoke the 2d context moveTo method.

Declaration

cs-api-definition
public void Context2dMoveTo(double x, double y)

Parameters

x

double

y

double

Context2dQuadraticCurveTo(double, double, double, double)

Invoke the 2d context quadraticCurveTo method.

Declaration

cs-api-definition
public void Context2dQuadraticCurveTo(double cpx, double cpy, double x, double y)

Parameters

cpx

double

cpy

double

x

double

y

double

Context2dRect(double, double, double, double)

Invoke the 2d context rect method.

Declaration

cs-api-definition
public void Context2dRect(double x, double y, double w, double h)

Parameters

x

double

y

double

w

double

h

double

Context2dRestore()

Invoke the 2d context restore method.

Declaration

cs-api-definition
public void Context2dRestore()

Context2dRotate(double)

Invoke the 2d context rotate method.

Declaration

cs-api-definition
public void Context2dRotate(double angle)

Parameters

angle

double

Context2dSave()

Invoke the 2d context save method.

Declaration

cs-api-definition
public void Context2dSave()

Context2dScale(double, double)

Invoke the 2d context scale method.

Declaration

cs-api-definition
public void Context2dScale(double x, double y)

Parameters

x

double

y

double

Context2dScrollPathIntoView()

Invoke the 2d context scrollPathIntoView method.

Declaration

cs-api-definition
public void Context2dScrollPathIntoView()

Context2dSetTransform(double, double, double, double, double, double)

Invoke the 2d context setTransform method.

Declaration

cs-api-definition
public void Context2dSetTransform(double a, double b, double c, double d, double e, double f)

Parameters

a

double

b

double

c

double

d

double

e

double

f

double

Context2dStroke()

Invoke the 2d context stroke method.

Declaration

cs-api-definition
public void Context2dStroke()

Context2dStrokeRect(double, double, double, double)

Invoke the 2d context strokeRect method.

Declaration

cs-api-definition
public void Context2dStrokeRect(double x, double y, double w, double h)

Parameters

x

double

y

double

w

double

h

double

Context2dStrokeText(string, double, double)

Invoke the 2d context strokeText method.

Declaration

cs-api-definition
public void Context2dStrokeText(string text, double x, double y)

Parameters

text

string

x

double

y

double

Context2dStrokeText(string, double, double, double)

Invoke the 2d context strokeText method.

Declaration

cs-api-definition
public void Context2dStrokeText(string text, double x, double y, double maxWidth)

Parameters

text

string

x

double

y

double

maxWidth

double

Context2dTransform(double, double, double, double, double, double)

Invoke the 2d context transform method.

Declaration

cs-api-definition
public void Context2dTransform(double a, double b, double c, double d, double e, double f)

Parameters

a

double

b

double

c

double

d

double

e

double

f

double

Context2dTranslate(double, double)

Invoke the 2d context translate method.

Declaration

cs-api-definition
public void Context2dTranslate(double x, double y)

Parameters

x

double

y

double

In this article
DefinitionConstructorsHtmlCanvas()HtmlCanvas(Element)PropertiesContext2dFillStyleContext2dFontContext2dGlobalAlphaContext2dGlobalCompositOperationContext2dLineCapContext2dLineJoinContext2dLineWidthContext2dMiterLimitContext2dShadowBlurContext2dShadowColorContext2dShadowOffsetXContext2dShadowOffsetYContext2dStrokeStyleContext2dTextAlignContext2dTextBaselineHeightWidthMethodsAssignElement(Element)Context2dArc(double, double, double, double, double, bool)Context2dArcTo(double, double, double, double, double)Context2dBeginPath()Context2dBezierCurveTo(double, double, double, double, double, double)Context2dClearRect(double, double, double, double)Context2dClip()Context2dClosePath()Context2dFill()Context2dFillRect(double, double, double, double)Context2dFillText(string, double, double)Context2dFillText(string, double, double, double)Context2dIsPointInPath(double, double)Context2dLineTo(double, double)Context2dMoveTo(double, double)Context2dQuadraticCurveTo(double, double, double, double)Context2dRect(double, double, double, double)Context2dRestore()Context2dRotate(double)Context2dSave()Context2dScale(double, double)Context2dScrollPathIntoView()Context2dSetTransform(double, double, double, double, double, double)Context2dStroke()Context2dStrokeRect(double, double, double, double)Context2dStrokeText(string, double, double)Context2dStrokeText(string, double, double, double)Context2dTransform(double, double, double, double, double, double)Context2dTranslate(double, double)
Not finding the help you need?
Contact Support