Table of Contents

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

bool

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

string

FontSize

public int FontSize { get; set; }

Property Value

int

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

float

MaxWidth

public float MaxWidth { get; set; }

Property Value

float

Metrices

public TextMetrics Metrices { get; }

Property Value

TextMetrics

Text

public string Text { get; set; }

Property Value

string

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

context RenderContext2D

The context.

Returns

bool

true if this instance can render the specified context; otherwise, false.

OnAttach(IRenderHost)

Called when [attach].

protected override bool OnAttach(IRenderHost host)

Parameters

host IRenderHost

The target.

Returns

bool

OnDetach()

Called when [detach].

protected override void OnDetach()

OnRender(RenderContext2D)

Called when [render].

protected override void OnRender(RenderContext2D context)

Parameters

context RenderContext2D

The context.