Table of Contents

Method GetPartScaled

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

GetPartScaled(NineRectsParts)

Gets the scaled rectangle that corresponds to the specified part of the NineRects layout.

public readonly RectD GetPartScaled(NineRects.NineRectsParts part)

Parameters

part NineRects.NineRectsParts

The part of the NineRects layout to retrieve, specified as a value of the NineRectsParts enumeration.

Returns

RectD

A RectD structure representing the dimensions of the specified part, scaled to device-independent pixels.

Remarks

The scaling is performed using the current scale factor to convert pixel values to device-independent units. This is useful for rendering layouts consistently across different display resolutions.