Search Results for

    Show / Hide Table of Contents

    Interface IText

    Inherited Members
    IContentElement.Clone()
    IContentElement.Remove()
    IContentElement.Replace(IContentElement)
    IContentElement.Parent
    IContentElement.Status
    ITextContentElement.Find(String, Nullable<RegexOptions>, Boolean, Boolean)
    ITextContentElement.Replace(String, String, Nullable<RegexOptions>, Boolean, Boolean)
    ITextContentElement.ToString()
    ITextContentElement.Text
    IHasTextStyle.TextStyle
    Namespace: IronPPT.Interfaces
    Assembly: IronPPT.dll
    Syntax
    public interface IText : IContentElement, ITextContentElement, IHasTextStyle

    IText is the contract for one styled run of text inside a slide or text box, the unit a developer reads, rewrites, or restyles when editing words on a slide. It is what ISlide.Texts and ITextBox.Texts hand back, so iterating a slide's text works against this contract rather than a concrete class.

    The concrete implementor in IronPPT is Text. A developer usually receives an IText from a slide's Texts collection, or adds one with AddText, then edits it in place. Its own members are Append, which joins another IText to this run and returns the result, and Split, which divides the run on a delimiter into a List<IText>. The everyday read-and-edit members come from the inherited ITextContentElement contract: the Text property holds the actual string, Find locates substrings, and Replace swaps text. Per-run formatting (font, bold, color) is reached through the TextStyle inherited from IHasTextStyle.

    foreach (IText run in slide.Texts)
        run.Replace("DRAFT", "FINAL");

    The add text how-to places text on a slide, and the add paragraph example builds runs of text.

    Methods

    Append(IText)

    Declaration
    IText Append(IText text)
    Parameters
    Type Name Description
    IText text
    Returns
    Type Description
    IText

    Split(String)

    Declaration
    List<IText> Split(string delimiter)
    Parameters
    Type Name Description
    System.String delimiter
    Returns
    Type Description
    System.Collections.Generic.List<IText>

    Inherited members

    Clone()
    Remove()
    Replace(IContentElement)
    Parent
    Status
    Find(String, Nullable<RegexOptions>, Boolean, Boolean)
    Replace(String, String, Nullable<RegexOptions>, Boolean, Boolean)
    ToString()
    Text
    TextStyle
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet