VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.Markdown.LineFragment Class Referenceabstract

Represents one of the fragments that make up a Line. More...

Inheritance diagram for VectSharp.Markdown.LineFragment:

Public Member Functions

abstract void Translate (double deltaX, double deltaY)
 Applies the specified translation to the line fragment. More...
 
abstract double GetAscent (double lineAscent)
 Get the ascent of the LineFragment. More...
 
abstract double GetMaxY ()
 Get the vertical coordinate of the bottom of the LineFragment. More...
 
abstract double GetMaxX ()
 Get the horizontal coordinate of the right side of the LineFragment. More...
 
abstract ? Point Render (Graphics graphics, double deltaY)
 Render the LineFragment on the specified graphics surface. More...
 

Properties

string Tag [get]
 Graphics action tag for the fragment. More...
 

Detailed Description

Represents one of the fragments that make up a Line.

Definition at line 26 of file Line.cs.

Member Function Documentation

◆ GetAscent()

abstract double VectSharp.Markdown.LineFragment.GetAscent ( double  lineAscent)
pure virtual

Get the ascent of the LineFragment.

Parameters
lineAscentThe ascent of the Line on which the fragment should be drawn.
Returns
The ascent of the LineFragment.

Implemented in VectSharp.Markdown.TextFragment, VectSharp.Markdown.UnderlineFragment, and VectSharp.Markdown.RectangleFragment.

◆ GetMaxX()

abstract double VectSharp.Markdown.LineFragment.GetMaxX ( )
pure virtual

Get the horizontal coordinate of the right side of the LineFragment.

Returns
The horizontal coordinate of the right side of the LineFragment.

Implemented in VectSharp.Markdown.TextFragment, VectSharp.Markdown.UnderlineFragment, and VectSharp.Markdown.RectangleFragment.

◆ GetMaxY()

abstract double VectSharp.Markdown.LineFragment.GetMaxY ( )
pure virtual

Get the vertical coordinate of the bottom of the LineFragment.

Returns
The vertical coordinates of the bottom of the LineFragment.

Implemented in VectSharp.Markdown.TextFragment, VectSharp.Markdown.UnderlineFragment, and VectSharp.Markdown.RectangleFragment.

◆ Render()

abstract ? Point VectSharp.Markdown.LineFragment.Render ( Graphics  graphics,
double  deltaY 
)
pure virtual

Render the LineFragment on the specified graphics surface.

Parameters
graphicsThe Graphics surface on which the LineFragment will be drawn.
deltaYAdditional translation on the vertical axis.
Returns
If a text element has been drawn, this method should return the bottom-right corner of the drawn text element, otherwise null. This is used to update the MarkdownContext.BottomRight property.

Implemented in VectSharp.Markdown.TextFragment, VectSharp.Markdown.UnderlineFragment, and VectSharp.Markdown.RectangleFragment.

◆ Translate()

abstract void VectSharp.Markdown.LineFragment.Translate ( double  deltaX,
double  deltaY 
)
pure virtual

Applies the specified translation to the line fragment.

Parameters
deltaXThe translation in the horizontal direction.
deltaYThe translation in the vertical direction.

Implemented in VectSharp.Markdown.TextFragment, VectSharp.Markdown.UnderlineFragment, and VectSharp.Markdown.RectangleFragment.

Property Documentation

◆ Tag

string VectSharp.Markdown.LineFragment.Tag
get

Graphics action tag for the fragment.

Definition at line 38 of file Line.cs.


The documentation for this class was generated from the following file: