TextPrimitive Class

Represents a Text primitive which can be used to put text elements into TransparentPanel.

Definition

Namespace: BeeMobile.TransparentControls.Primitives
Assembly: BeeMobile.TransparentControls.NET48 (in BeeMobile.TransparentControls.NET48.dll) Version: 4.8.8.20
C#
public class TextPrimitive : PrimitiveBase, 
	IDisposable
Inheritance
Object    PrimitiveBase    TextPrimitive
Implements
IDisposable

Constructors

TextPrimitive Initializes a new instance of TextPrimitive class.

Properties

Alignment Gets or sets how the Text should be aligned when it is drawn.
Anchor Gets or sets the anchor style of the primitive inside the container.
(Inherited from PrimitiveBase)
Bounds The bounds of the primitive inside the container.
(Inherited from PrimitiveBase)
Children Descendant primitives. They are drawn in the area of parent. Their bounds and anchor style are relative to the parent.
(Inherited from PrimitiveBase)
Color The color by which the primitive should be drawn on the surface.
(Inherited from PrimitiveBase)
Font Gets or sets the font used to draw the Text.
Name The name of the primitive.
(Inherited from PrimitiveBase)
Text Gets or sets the text to be drawn.

Methods

Dispose Release resources and dispose object.
Dispose(Boolean) Disposes TextPrimitive object.
Draw Draws the primitive on a graphics surface.
(Inherited from PrimitiveBase)
DrawContent Draws the Text primitive to the specified Graphics object using specified Color into specified Rectangle.
(Overrides PrimitiveBaseDrawContent(Graphics, Rectangle))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Destructor calls Dispose(Boolean) method.
(Overrides ObjectFinalize)
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.
(Inherited from PrimitiveBase)
ParentResized Should be called, when the parent container is resized.
(Inherited from PrimitiveBase)
ResetAlignment Resets the Alignment property to its default value.
ResetAnchor Resets the Anchor property to its default value.
(Inherited from PrimitiveBase)
ResetBounds Resets the Bounds property to its default value.
(Inherited from PrimitiveBase)
ResetColor Resets the Color property to its default value.
(Inherited from PrimitiveBase)
ResetFont Resets the Font property to its default value.
ResetText Resets the Text property to its default value.
ScalePrimitive Scales the primitive by a given scale factor.
(Inherited from PrimitiveBase)
ShouldSerializeAlignment Indicates whether the Alignment property should be persisted.
ShouldSerializeAnchor Indicates whether the Anchor property should be persisted.
(Inherited from PrimitiveBase)
ShouldSerializeBounds Indicates whether the Bounds property should be persisted.
(Inherited from PrimitiveBase)
ShouldSerializeColor Indicates whether the Color property should be persisted.
(Inherited from PrimitiveBase)
ShouldSerializeFont Indicates whether the Font property should be persisted.
ShouldSerializeName Indicates whether the Name property should be persisted.
(Inherited from PrimitiveBase)
ShouldSerializeText Indicates whether the Text 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.
(Inherited from PrimitiveBase)

See Also