Table of Contents

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

owner IChartNode

Parent.

Properties

Angle

Text rotation angle, in degrees. The rotation is applied around text center point.

public double Angle { get; set; }

Property Value

double

Color

Color

public Color Color { get; set; }

Property Value

Color

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

RectangleXY

Font

Title font

public Font Font { get; set; }

Property Value

Font

Shadow

Shadow below the text

public TextShadow Shadow { get; set; }

Property Value

TextShadow

Text

Title text.

public string Text { get; set; }

Property Value

string

Visible

Is title visible or not

public bool Visible { get; set; }

Property Value

bool

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

disposing bool

true 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

x int

x-coordinate

y int

y-coordinate

useDIP bool

Use DIP instead of pixels as parameters

Returns

bool

true if position is over item, false otherwise

SetItemDragStartPosition()

Item center position when dragging starts.

protected override void SetItemDragStartPosition()