Class TextRenderCore2D
- Namespace
- HelixToolkit.SharpDX.Core2D
- Assembly
- HelixToolkit.SharpDX.dll
public class TextRenderCore2D : RenderCore2DBase, IDisposable
- Inheritance
-
TextRenderCore2D
- Implements
- Inherited Members
Fields
textLayoutDirty
protected bool textLayoutDirty
Field Value
Properties
Background
public Brush? Background { get; set; }
Property Value
- Brush
DrawingOptions
public DrawTextOptions DrawingOptions { get; set; }
Property Value
- DrawTextOptions
FlowDirection
public FlowDirection FlowDirection { get; set; }
Property Value
- FlowDirection
FontFamily
public string FontFamily { get; set; }
Property Value
FontSize
public int FontSize { get; set; }
Property Value
FontStyle
public FontStyle FontStyle { get; set; }
Property Value
- FontStyle
FontWeight
public FontWeight FontWeight { get; set; }
Property Value
- FontWeight
Foreground
public Brush? Foreground { get; set; }
Property Value
- Brush
MaxHeight
public float MaxHeight { get; set; }
Property Value
MaxWidth
public float MaxWidth { get; set; }
Property Value
Metrices
public TextMetrics Metrices { get; }
Property Value
- TextMetrics
Text
public string Text { get; set; }
Property Value
TextAlignment
public TextAlignment TextAlignment { get; set; }
Property Value
- TextAlignment
Methods
CanRender(RenderContext2D)
Determines whether this instance can render the specified context.
protected override bool CanRender(RenderContext2D context)
Parameters
contextRenderContext2DThe context.
Returns
- bool
trueif this instance can render the specified context; otherwise,false.
OnAttach(IRenderHost)
Called when [attach].
protected override bool OnAttach(IRenderHost host)
Parameters
hostIRenderHostThe target.
Returns
OnDetach()
Called when [detach].
protected override void OnDetach()
OnRender(RenderContext2D)
Called when [render].
protected override void OnRender(RenderContext2D context)
Parameters
contextRenderContext2DThe context.