PrimitiveBase Class

The base abstract class of graphics primitives.

Definition

Namespace: BeeMobile.TransparentControls.Primitives
Assembly: BeeMobile.TransparentControls.NET48 (in BeeMobile.TransparentControls.NET48.dll) Version: 4.8.8.20
C#
public abstract class PrimitiveBase : IGraphicsElement
Inheritance
Object    PrimitiveBase
Derived
More
Implements
IGraphicsElement

Constructors

PrimitiveBase The constructor of the PrimitiveBase class.

Properties

Anchor Gets or sets the anchor style of the primitive inside the container.
Bounds The bounds of the primitive inside the container.
Children Descendant primitives. They are drawn in the area of parent. Their bounds and anchor style are relative to the parent.
Color The color by which the primitive should be drawn on the surface.
Name The name of the primitive.

Methods

Draw Draws the primitive on a graphics surface.
DrawContent Abstract method, which has to been implemented in derived classes, which provides the actual drawing of the primitive.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnChanged Fires the Changed event.
ParentResized Should be called, when the parent container is resized.
ResetAnchor Resets the Anchor property to its default value.
ResetBounds Resets the Bounds property to its default value.
ResetColor Resets the Color property to its default value.
ScalePrimitive Scales the primitive by a given scale factor.
ShouldSerializeAnchor Indicates whether the Anchor property should be persisted.
ShouldSerializeBounds Indicates whether the Bounds property should be persisted.
ShouldSerializeColor Indicates whether the Color property should be persisted.
ShouldSerializeName Indicates whether the Name property should be persisted.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Changed Occurs, when some property or a property of a children (every descendant primitive) has changed.

See Also