API Reference
Class
VisualCanvasTextLayer
Plain text layer with either an explicit color or the canvas primary foreground.
Inheritance
- VisualCanvasLayer
- VisualCanvasTextLayer
Constructors
VisualCanvasTextLayer 2 overloads
public VisualCanvasTextLayer(Double x, Double y, Double width, String text, Double fontSize) #Initializes a text layer that follows the canvas primary foreground at render time.
Parameters
- x System.Double
- The text X coordinate.
- y System.Double
- The text Y coordinate.
- width System.Double
- The text width used for alignment and clipping.
- text System.String
- The text to render.
- fontSize System.Double
- The font size.
public VisualCanvasTextLayer(Double x, Double y, Double width, String text, Double fontSize, ChartColor color) #Initializes a text layer with an explicit color, retained independently of the canvas theme.
Parameters
- x System.Double
- The text X coordinate.
- y System.Double
- The text Y coordinate.
- width System.Double
- The text width used for alignment and clipping.
- text System.String
- The text to render.
- fontSize System.Double
- The font size.
- color ChartForgeX.Primitives.ChartColor
- The explicit text color, including white or transparent.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public String Text { get; set; } #Gets or sets the text.
public Double FontSize { get; set; } #Gets or sets the font size.
public ChartColor Color { get; set; } #Gets the authored color, or white when none was supplied. Setting this property selects an explicit color; an uncolored layer renders with the canvas primary foreground.
public TextAlignment Alignment { get; set; } #Gets or sets the text alignment.
public Boolean Emphasized { get; set; } #Gets or sets whether the text should use the emphasized raster/SVG treatment.
Inherited Properties
public Double X { get; set; } #Inherited from VisualCanvasLayer
public Double Y { get; set; } #Inherited from VisualCanvasLayer
public Double Width { get; set; } #Inherited from VisualCanvasLayer
public Double Height { get; set; } #Inherited from VisualCanvasLayer
public ChartRect Bounds { get; } #Inherited from VisualCanvasLayer