Method GetPartScaled
GetPartScaled(NineRectsParts)
Gets the scaled rectangle that corresponds to the specified part of the NineRects layout.
public readonly RectD GetPartScaled(NineRects.NineRectsParts part)
Parameters
partNineRects.NineRectsPartsThe 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.