RControl

TheArtOfDev.HtmlRenderer.Adapters

Adapter for platform specific control object - used to handle updating the control that the html is rendered on. Not relevant for platforms that don't render HTML on UI element.

Construtores

RControl(RAdapter)

Init control with platform adapter.

Propriedades

Adapter : RAdapter

The platform adapter.

LeftMouseButton : bool

Is the left mouse button is currently in pressed state

MouseLocation : RPoint

Get the current location of the mouse relative to the control

RightMouseButton : bool

Is the right mouse button is currently in pressed state

Métodos

DoDragDropCopy(object)

Do drag-drop copy operation for the given data object.

dragDropData
the drag-drop data object
Invalidate()

Invalidates the entire surface of the control and causes the control to be redrawn.

MeasureString(string, RFont, double, int, double)

Measure the width of string under max width restriction calculating the number of characters that can fit and the width those characters take.

str
the string to measure
font
the font to measure string with
maxWidth
the max width to calculate fit characters
charFit
the number of characters that will fit under restriction
charFitWidth
the width that only the characters that fit into max width take
SetCursorDefault()

Set the cursor over the control to default cursor

SetCursorHand()

Set the cursor over the control to hand cursor

SetCursorIBeam()

Set the cursor over the control to I beam cursor

Campos

_adapter : RAdapter

The platform adapter.