Class TitleBase
- Namespace
- LightningChartLib.WinForms.Charting.Titles
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Base class for titles.
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class TitleBase : DraggableObject, IChartNode, IDisposable, IHighlightingItem
- Inheritance
-
TitleBase
- Implements
- Derived
- Inherited Members
Constructors
TitleBase()
Constructor, for serialization purposes.
public TitleBase()
TitleBase(IChartNode)
Constructor.
public TitleBase(IChartNode owner)
Parameters
ownerIChartNodeParent.
Properties
Angle
Text rotation angle, in degrees. The rotation is applied around text center point.
public double Angle { get; set; }
Property Value
Color
Color
public Color Color { get; set; }
Property Value
DrawRectangle
Title draw rectangle (read only). Note, accurate only for Angle=0. Otherwise, reliable only Width, Height and central point.
public RectangleXY DrawRectangle { get; }
Property Value
Font
Title font
public Font Font { get; set; }
Property Value
Shadow
Shadow below the text
public TextShadow Shadow { get; set; }
Property Value
Text
Title text.
public string Text { get; set; }
Property Value
Visible
Is title visible or not
public bool Visible { get; set; }
Property Value
Methods
CreateFont()
Create font.
protected virtual void CreateFont()
CreateShadow()
Create shadow.
protected virtual void CreateShadow()
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
IsPositionOver(int, int, bool)
Is position over item.
public override bool IsPositionOver(int x, int y, bool useDIP = false)
Parameters
Returns
- bool
true if position is over item, false otherwise
SetItemDragStartPosition()
Item center position when dragging starts.
protected override void SetItemDragStartPosition()