Table of Contents

Class Direct2DContext

Namespace
Xui.Runtime.Windows.Actual
Assembly
Xui.Runtime.Windows.dll
public class Direct2DContext : IContext, IMeasureContext, IStateContext, IPenContext, IPathDrawingContext, IPathBuilder, IGlyphPathBuilder, IPathDrawing, IPathClipping, IRectDrawingContext, ITextDrawingContext, ITextMeasureContext, IImageDrawingContext, ITransformContext, IDisposable
Inheritance
Direct2DContext
Implements
Inherited Members
Extension Methods

Constructors

Direct2DContext(RenderTarget, Factory3, Factory)

public Direct2DContext(D2D1.RenderTarget renderTarget, D2D1.Factory3 d2d1Factory, DWrite.Factory dWriteFactory)

Parameters

renderTarget D2D1.RenderTarget
d2d1Factory D2D1.Factory3
dWriteFactory DWrite.Factory

Properties

TextAlign

Sets the horizontal alignment of the text relative to the given position.

public TextAlign TextAlign { get; set; }

Property Value

TextAlign

TextBaseline

Sets the vertical alignment of the text relative to the given baseline.

public TextBaseline TextBaseline { get; set; }

Property Value

TextBaseline

Methods

BeginDraw()

public void BeginDraw()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

EndDraw()

public void EndDraw()

~Direct2DContext()

protected ~Direct2DContext()