Search Results for

    Show / Hide Table of Contents

    Class TTextExtentRenderer

    Custom DirectWrite text renderer that does not draw, but instead captures glyph indices, advances, offsets and per-run formatting into glyph and line lists for measuring text extents and feeding the metafile.

    Inheritance
    object
    DisposeBase
    CallbackBase
    TextRendererBase
    TTextExtentRenderer
    Implements
    TextRenderer
    PixelSnapping
    IUnknown
    ICallbackable
    IDisposable
    Inherited Members
    CallbackBase.Dispose(bool)
    CallbackBase.AddReference()
    CallbackBase.Release()
    CallbackBase.QueryInterface(ref Guid, out nint)
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.Disposing
    DisposeBase.Disposed
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing.Windows
    Assembly: Reportman.Drawing.Windows.dll
    Syntax
    public class TTextExtentRenderer : TextRendererBase, TextRenderer, PixelSnapping, IUnknown, ICallbackable, IDisposable

    Constructors

    View Source

    TTextExtentRenderer(string, List<HtmlFormatRun>)

    Declaration
    public TTextExtentRenderer(string originalText, List<HtmlFormatRun> htmlRuns = null)
    Parameters
    Type Name Description
    string originalText
    List<HtmlFormatRun> htmlRuns

    Fields

    View Source

    _fontFace

    Declaration
    public FontFace _fontFace
    Field Value
    Type Description
    FontFace

    Properties

    View Source

    GlyphPositions

    Declaration
    public List<TGlyphPos> GlyphPositions { get; }
    Property Value
    Type Description
    List<TGlyphPos>
    View Source

    Lines

    Declaration
    public List<TGlyphLine> Lines { get; }
    Property Value
    Type Description
    List<TGlyphLine>

    Methods

    View Source

    DrawGlyphRun(object, float, float, MeasuringMode, GlyphRun, GlyphRunDescription, ComObject)

    Declaration
    public override Result DrawGlyphRun(object clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, ComObject clientDrawingEffect)
    Parameters
    Type Name Description
    object clientDrawingContext
    float baselineOriginX
    float baselineOriginY
    MeasuringMode measuringMode
    GlyphRun glyphRun
    GlyphRunDescription glyphRunDescription
    ComObject clientDrawingEffect
    Returns
    Type Description
    Result
    Overrides
    TextRendererBase.DrawGlyphRun(object, float, float, MeasuringMode, GlyphRun, GlyphRunDescription, ComObject)
    View Source

    DrawInlineObject(object, float, float, InlineObject, bool, bool, ComObject)

    Declaration
    public override Result DrawInlineObject(object clientDrawingContext, float originX, float originY, InlineObject inlineObject, bool isSideways, bool isRightToLeft, ComObject clientDrawingEffect)
    Parameters
    Type Name Description
    object clientDrawingContext
    float originX
    float originY
    InlineObject inlineObject
    bool isSideways
    bool isRightToLeft
    ComObject clientDrawingEffect
    Returns
    Type Description
    Result
    Overrides
    TextRendererBase.DrawInlineObject(object, float, float, InlineObject, bool, bool, ComObject)
    View Source

    DrawStrikethrough(object, float, float, ref Strikethrough, ComObject)

    Declaration
    public override Result DrawStrikethrough(object clientDrawingContext, float baselineOriginX, float baselineOriginY, ref Strikethrough strikethrough, ComObject clientDrawingEffect)
    Parameters
    Type Name Description
    object clientDrawingContext
    float baselineOriginX
    float baselineOriginY
    Strikethrough strikethrough
    ComObject clientDrawingEffect
    Returns
    Type Description
    Result
    Overrides
    TextRendererBase.DrawStrikethrough(object, float, float, ref Strikethrough, ComObject)
    View Source

    DrawUnderline(object, float, float, ref Underline, ComObject)

    Declaration
    public override Result DrawUnderline(object clientDrawingContext, float baselineOriginX, float baselineOriginY, ref Underline underline, ComObject clientDrawingEffect)
    Parameters
    Type Name Description
    object clientDrawingContext
    float baselineOriginX
    float baselineOriginY
    Underline underline
    ComObject clientDrawingEffect
    Returns
    Type Description
    Result
    Overrides
    TextRendererBase.DrawUnderline(object, float, float, ref Underline, ComObject)
    View Source

    GetCurrentTransform(object)

    Declaration
    public override RawMatrix3x2 GetCurrentTransform(object clientDrawingContext)
    Parameters
    Type Name Description
    object clientDrawingContext
    Returns
    Type Description
    RawMatrix3x2
    Overrides
    TextRendererBase.GetCurrentTransform(object)
    View Source

    GetPixelsPerDip(object)

    Declaration
    public override float GetPixelsPerDip(object clientDrawingContext)
    Parameters
    Type Name Description
    object clientDrawingContext
    Returns
    Type Description
    float
    Overrides
    TextRendererBase.GetPixelsPerDip(object)
    View Source

    IsPixelSnappingDisabled(object)

    Declaration
    public override bool IsPixelSnappingDisabled(object clientDrawingContext)
    Parameters
    Type Name Description
    object clientDrawingContext
    Returns
    Type Description
    bool
    Overrides
    TextRendererBase.IsPixelSnappingDisabled(object)

    Implements

    SharpDX.DirectWrite.TextRenderer
    SharpDX.DirectWrite.PixelSnapping
    SharpDX.IUnknown
    SharpDX.ICallbackable
    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX