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
Namespace: StreetSmart.Common.FactoriesAssemblies: StreetSmart.WinForms (in StreetSmart.WinForms.dll) Version: 25.4.0.0+7bd49053dfe51af01391d923dce38932dc8e8587
StreetSmart.WPF (in StreetSmart.WPF.dll) Version: 25.4.0.0+7bd49053dfe51af01391d923dce38932dc8e8587
public static IDomElement Create(
int width,
int height,
int top,
int left
)
- width Int32
- Width in percent
- height Int32
- Height in percent
- top Int32
- Top in pixels
- left Int32
- Left in pixels
IDomElementRepresents a dom element.
This sample shows how to use the
Create(Int32, Int32, Int32, Int32) method.
// 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);
Supported in: 18.7