Table of Contents

Method GetRealSize

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GetRealSize(Graphics)

Calculates the actual size of the object, ensuring it meets the minimum width requirement.

public readonly SizeD GetRealSize(Graphics dc)

Parameters

dc Graphics

The Graphics context used to measure the size.

Returns

SizeD

A SizeD structure representing the calculated size. The width is adjusted to ensure it is not less than the minimum width.

Remarks

The method uses the provided Graphics context to determine the size of the object. If the calculated width is smaller than the minimum width, the width is adjusted to meet the minimum requirement while the height remains unchanged.