WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IStringWidget - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IStringWidget

    Represents a Widget with string-like layouting.

    Inherited Members
    ISplitLeafWidget.SplitByOffset(CustomGraphics, SizeF)
    ILeafWidget.Measure(CustomGraphics)
    IWidget.Draw(CustomGraphics, LayoutedWidget)
    IWidget.LayoutInfo
    ITextMeasurable.Measure(CustomGraphics, String)
    Namespace: Syncfusion.Layouting
    Assembly: Syncfusion.DLS.Base.dll
    Syntax
    public interface IStringWidget : ISplitLeafWidget, ILeafWidget, IWidget, ITextMeasurable

    Properties

    Text

    Gets text string.

    Declaration
    string Text { get; }
    Property Value
    Type Description
    System.String

    Methods

    Draw(CustomGraphics, LayoutedWidget, String)

    Draw specified string to custom graphics.

    Declaration
    void Draw(CustomGraphics cg, LayoutedWidget ltWidget, string text)
    Parameters
    Type Name Description
    CustomGraphics cg
    LayoutedWidget ltWidget
    System.String text

    GetTextAscent(CustomGraphics)

    Gets text ascent.

    Declaration
    double GetTextAscent(CustomGraphics graphics)
    Parameters
    Type Name Description
    CustomGraphics graphics
    Returns
    Type Description
    System.Double

    OffsetToIndex(CustomGraphics, Double, String)

    Gets position of specified symbol in specified string

    Declaration
    int OffsetToIndex(CustomGraphics graphics, double offset, string text)
    Parameters
    Type Name Description
    CustomGraphics graphics
    System.Double offset
    System.String text
    Returns
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved