Label Class

Base class for all labels.
Public MustInherit Class Label 
Implements ISerializable, _ 
IDisposable, _ 
ICloneable, _ 
ISelectableItem
This language is not supported or no code example is available.
public abstract class Label : ISerializable
IDisposable
ICloneable
ISelectableItem
This language is not supported or no code example is available.
Name Description
Protected constructor Label(Point3D, Color, bool) Standard constructor.
Public constructor Label(Color) Quick constructor, 3D attaching point is (0,0,0).
Public constructor Label(Label)
Public constructor Label(Point3D, Color) Standard constructor.
Public constructor Label(SerializationInfo, StreamingContext) Constructor for deserializing objects.
Public constructor Label(double, double, double, Color) Standard constructor.
Top
Name Description
Public property Alignment Gets or sets the label align mode.
Public property AnchorPoint Gets or sets the label anchor point.
Public property Color Gets or sets the label color.
Internal protected (Protected Friend) property Image Gets the label image.
Public property LabelData Gets or sets the label custom data. If the type implements ICloneable it will be cloned when the Label is cloned.
Public property OnScreenPosition Gets label position on screen.
Public property RegenMode Gets or sets the label regeneration mode.
Public property Selectable Gets or sets the value that tells if the item can be selected.
Public property Selected Gets or sets the label selection status.
Public property Size Gets the size of the label.
Public property Visible If false the label is not drawn.
Top
Methods
 
Name Description
Public method ClearSelectionForAllInstances() Clears the selection status.
Public method Clone() Creates a new object that is a copy of the current instance.
Protected method ComputePositions(float, float)
Internal protected (Protected Friend) method ComputePositionsGDI(float)
Protected method CreateSelectedBitmap(float)
Public method Dispose() Releases unmanaged resources.
Public method Draw(RenderContextBase) Standard draw method.
Internal protected (Protected Friend) method DrawForSelection(RenderContextBase)
Public method DrawGdi(float, float, Graphics) GDI draw method.
Protected method DrawLeaderLine(RenderContextBase, Vector2D)
Public method DrawSelected(RenderContextBase) Draw method for selected labels.
Protected method DrawTexture(RenderContextBase, TextureBase, RectangleF, bool)
Public method DrawWithOffset(RenderContextBase, int, int) Draws the label with an offset from attaching point.
Public method DrawWithOffsetGdi(float, float, float, Graphics) Draws (GDI) the label with an offset from attaching point.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Protected method GetBitmap() Gets the proper image according to current selection status.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetObjectData(SerializationInfo, StreamingContext) Populates a SerializationInfo instance with the data needed to serialize the target object.
Public method GetSelection(Stack<BlockReference>)
Protected method GetTexture(RenderContextBase) Gets the proper texture according to current selection status.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method IsAnyInstanceSelected() Tells if the label is selected.
Public method IsClipped(ClippingPlaneBase[]) Tells if a label is clipped by the clipping planes.
Public method IsSelected(Stack<BlockReference>) Obsolete. Tells if the instance referred by the stack of parents is selected.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Regen(RenderContextBase, float) Regenerates the label creating the internal data needed to draw the label.
Public method ScaleForDPI() Scales the element for high DPI settings.
Protected method SetImage(Bitmap)
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method UpdatePos(RenderContextBase, double[], int[]) Update label position on screen.
Top

.NET Framework

Supported in: 4.8

In this article

Definition