Search Framework:
DrawingObjectLine
Namespace: WealthLab.ChartWPF
Parent: Object

Represents a component line in a chart drawing object.

Members
CanChangeExtendLeft
public bool CanChangeExtendLeft

Controls whether the ExtendLeft property of this line is changed when the user changes the "Extend Left" Parameter instance of the Parent drawing object.


CanChangeExtensRight
public bool CanChangeExtendRight

Controls whether the ExtendRight property of this line is changed when the user changes the "Extend Right" Parameter instance of the Parent drawing object.


CanChangeLineStyle
public bool CanChangeLineStyle

Controls whether the LineStyle property of this line is changed when the user changes the "Line Style" Parameter instance of the Parent drawing object.


Color
public WLColor Color

Initializes to a default of WLColor.Transparent. If assigned a different Color value, the line will be rendered using that color instead of the Color of the parent drawing object.


ExtendLeft
public bool ExtendLeft

Controls whether the line extends beyond its LeftHandle when rendered.


ExtendRight
public bool ExtendRight

Controls whether the line extends beyond its RightHandle when rendered.


FixHandleOrder
public void FixHandleOrder()

Checks the positions of Handle1 and Handle2 and swaps them if Handle1 has a greater DateTime than Handle2.


Handle1
public Handle Handle1

Returns one of the two Handle instances that define this line.


Handle2
public Handle Handle2

Returns one of the two Handle instances that define this line.


InViewport
public bool InViewport(int startX, int endX)

Returns whether the line, or at least a portion of it, is visible within the range of index values specified by startX and endX.


IsDraggable
public bool IsDraggable

Controls whether or not the user can drag the line with the mouse.


IsVertical
public bool IsVertical

Returns whether or not the line is vertical.


IsVisible
public bool IsVisible

Controls whether or not the line should be rendered.


LeftHandle
public Handle LeftHandle

Returns the left side Handle of the line.


LineStyle
public LineStyles LineStyle

LineWidth
public int LineWidth

Specifies the line style to be used when rendering the line.


Parent
public DrawingObjectBase Parent

Returns the chart drawing object (an instance of the DrawingObjectBase class) that this line belongs to.


Render
public void Render(DrawingContext dc, Pen pen)

Renders the line to the specified DrawingContext (dc), using the specified pen.


RightHandle
public Handle RightHandle

Returns the right side Handle of the line.


SolveForY
public double SolveForY(DateTime dt)

Returns the y-axis value that the line intercepts at the specified DateTime (dt).