Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

CalcRotatedSize Method, GenericPartClass Class

Calculates the size of the smallest rectangle that can contain the rotated rectangle of a given size, based on the part's GenericPartClass.Angle property.

Class: GenericPartClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

protected SizeF CalcRotatedSize( SizeF szf );
Protected Function CalcRotatedSize( ByVal szf As SizeF ) As SizeF

Parameters

szf

The size of the rectangle for which the containing, rotated rectangle size is to be determined.

Return Value

The size of the smallest containing rectangle.

Comments

Calculates the size of the smallest rectangle that can contain the rotated rectangle of a given size, based on the part's GenericPartClass.Angle property.

This method is typically used to determine the rectangular space occupied by a rotated part.

See Also GenericPartClass Class | Classes | SftTree/NET 2.0