Softelvdm.Controls Class Library for Windows Controls 1.0

GenericPartClass Class

Softel vdm, Inc.

  GenericPartClass Class (Softelvdm.Controls Namespace)

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.

VB   

Public MustOverride Class GenericPartClass Inherits Object

C#   

public abstract class GenericPartClass : Object

C++   

public ref class GenericPartClass abstract : public Object


Public

Constructors

Properties

Fields

Methods

Events

Protected

Constructors

Properties

Fields

Methods

 


Public Constructors

Description

none

This class cannot be instantiated.

   

Public Properties

Description

public propertyAngle

Defines the rotation of the part.

public propertyHAlign

Defines the horizontal alignment within the part's available space.

public propertyOrientation

Returns the orientation of parts within a cell. This is defined by the cell or the owner of the cell.

public propertyPartAlignment

Defines the part alignment of this part relative to its container and other parts.

public propertyPartOwner

Returns the owner of the part, usually an object derived from CellBaseClass.

public propertyTagObject

Defines application-specific data.

public propertyTagString

Defines an application-specific string.

public propertyVAlign

Defines the vertical alignment within the part's available space.

public propertyVisibleAppearance

Returns the visibility status of the part.

  

Public Methods

Description

public methodEqualsinherited from System.Object

Determines whether the specified Object is equal to the current Object.

public methodGetHashCodeinherited from System.Object

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

public methodGetTypeinherited from System.Object

Gets the Type of the current instance.

public methodstatic / sharedReferenceEqualsinherited from System.Object

Determines whether the specified Object instances are the same instance.

public methodToStringinherited from System.Object

Returns a String that represents the current Object.

  

Public Event

Description

public eventAction

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

  

Protected Constructors

Description

protected constructorGenericPartClass Constructor

Standard constructor.

  

Protected Methods

Description

protected methodCalcRotatedSize

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

protected methodCalcSize

Calculates the size of the part.

protected methodCalcUnrotatedBaseWidth

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

protected methodConsiderForOutline

Defines whether the part is considered when calculating the outline rectangle of a cell.

protected methodCopy

Creates an identical copy of the part.

protected methodstatic / sharedCopyPart

Copies information from one part to another.

protected methodFinalizeinherited from System.Object

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

protected methodGetVisible

Returns the current visibility status of a part, based on the part's VisibleAppearance property.

protected methodMemberwiseCloneinherited from System.Object

Creates a shallow copy of the current Object.

protected methodOnContentChanged

Called when the contents of the part changed.

protected methodStrategyRoutine

Used to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks.

  

Version Information

Supported in version 1.0.
Products Table

See Also     Softelvdm.Controls Namespace


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com