Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

CalcUnrotatedBaseWidth Method, GenericPartClass Class

Calculates the actual width of the part, based on the width of the rotated part's containing rectangle.

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

Syntax

protected int CalcUnrotatedBaseWidth( int rotatedWidth );
Protected Function CalcUnrotatedBaseWidth( ByVal rotatedWidth As Integer ) As Integer

Parameters

rotatedWidth

The width of the rotated part's containing rectangle.

Return Value

The actual width of the non-rotated part.

Comments

Calculates the actual width of the part, based on the width of the rotated part's containing rectangle.

This method is typically used to determine the actual size of a rotated part, based on the rectangular space occupied by a rotated part. The part's GenericPartClass.Angle property is used for all calculations.

See Also GenericPartClass Class | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.