Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

GenericPartClass Class

An instance of the GenericPartClass abstract class represents one part in the parts collection of a cell.

All parts implemented by a control are derived from the GenericPartClass abstract class.

Currently, these classes implementing various parts are available:

Each cell has an optional parts collection, which can be accessed using the cell's CellBaseClass.Parts property.

Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Inheritance

Syntax

public abstract class GenericPartClass;
Public MustInherit Class GenericPartClass

Constructors

This class cannot be instantiated.

Properties

PublicAngleDefines the rotation of the part.
PublicHAlignDefines the horizontal alignment within the part's available space.
PublicOrientationReturns the orientation of parts within a cell. This is defined by the cell or the owner of the cell.
PublicPartAlignmentDefines the part alignment of this part relative to its container and other parts.
PublicPartOwnerReturns the owner of the part, usually an object derived from CellBaseClass.
PublicTagObjectDefines application-specific data.
PublicTagStringDefines an application-specific string.
PublicVAlignDefines the vertical alignment within the part's available space.
PublicVisibleAppearanceReturns the visibility status of the part.

Methods

ProtectedCalcRotatedSizeCalculates the size of the smallest rectangle that can contain the rotated rectangle of a given size, based on the part's GenericPartClass.Angle property.
ProtectedCalcSizeCalculates the size of the part.
ProtectedCalcUnrotatedBaseWidthCalculates the actual width of the part, based on the width of the rotated part's containing rectangle.
ProtectedConsiderForOutlineDefines whether the part is considered when calculating the outline rectangle of a cell.
ProtectedCopyCreates an identical copy of the part.
ProtectedStaticCopyPartCopies information from one part to another.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedGetVisibleReturns the current visibility status of a part, based on the part's GenericPartClass.VisibleAppearance property.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
ProtectedOnContentChangedCalled when the contents of the part changed.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
ProtectedStrategyRoutineUsed to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

Events

PublicActionOccurs when a part's action is triggered by the user.

Delegates

ProtectedActionEventHandlerRepresents the method that will handle the Action event of a part.

See Also Classes | SftTree/NET 2.0