DomElementFactoryCreate(Int32, Int32, Int32, Int32) Method

Creates a dom element with a width and height in percents and a top and a left in pixels

Definition

Namespace: StreetSmart.Common.Factories
Assembly: StreetSmart.WinForms (in StreetSmart.WinForms.dll) Version: 24.7.0.0+cc0a01953d1235087ce28d3e921f5bb47d3c0460
C#
public static IDomElement Create(
	int width,
	int height,
	int top,
	int left
)

Parameters

width  Int32
Width in percent
height  Int32
Height in percent
top  Int32
Top in pixels
left  Int32
Left in pixels

Return Value

IDomElement
Represents a dom element.

Example

This sample shows how to use the Create(Int32, Int32, Int32, Int32) method.
C#
// Create a dom element
int width = 75; // width in percents
int height = 75; // height in percents
int top = 50; // 50 pixels from top
int left = 50; // 50 pixels from left
IDomElement element = DomElementFactory.Create(width, height, top, left);

Version Information

Supported in: 18.7

See Also