Search Results for

    Show / Hide Table of Contents

    Class TextContentElement

    Inheritance
    System.Object
    ContentElement
    TextContentElement
    Text
    TextContent
    Implements
    IronSoftware.Abstractions.IDocumentElement
    IronSoftware.IDocumentObject
    System.ICloneable
    ITextContentElement
    Inherited Members
    ContentElement.Status
    ContentElement.Replace(ContentElement)
    ContentElement.Remove()
    ContentElement.GetIndex<T>()
    ContentElement.Clone()
    ContentElement.CloneObject()
    ContentElement.Parent
    ContentElement.ObjNum
    ContentElement.PageIndex
    ContentElement.DocumentId
    Namespace: IronWord.Models.Abstract
    Assembly: IronWord.dll
    Syntax
    public abstract class TextContentElement : ContentElement, IDocumentElement, IDocumentObject, ICloneable, ITextContentElement

    Constructors

    TextContentElement()

    Declaration
    protected TextContentElement()

    Properties

    Style

    Declaration
    public TextStyle Style { get; set; }
    Property Value
    Type Description
    TextStyle

    Text

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

    Methods

    Find(String, Nullable<RegexOptions>, Boolean, Boolean)

    Declaration
    public List<int> Find(string searchText, Nullable<RegexOptions> regexOption = null, bool wholeWordOnly = false, bool caseSensitive = false)
    Parameters
    Type Name Description
    System.String searchText
    System.Nullable<System.Text.RegularExpressions.RegexOptions> regexOption
    System.Boolean wholeWordOnly
    System.Boolean caseSensitive
    Returns
    Type Description
    System.Collections.Generic.List<System.Int32>

    Replace(String, String, Nullable<RegexOptions>, Boolean, Boolean)

    Declaration
    public ITextContentElement Replace(string searchText, string replaceText, Nullable<RegexOptions> regexOption = null, bool wholeWordOnly = false, bool caseSensitive = false)
    Parameters
    Type Name Description
    System.String searchText
    System.String replaceText
    System.Nullable<System.Text.RegularExpressions.RegexOptions> regexOption
    System.Boolean wholeWordOnly
    System.Boolean caseSensitive
    Returns
    Type Description
    ITextContentElement

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Implements

    IronSoftware.Abstractions.IDocumentElement
    IronSoftware.IDocumentObject
    System.ICloneable
    ITextContentElement

    Inherited members

    Status
    Replace(ContentElement)
    Remove()
    GetIndex<T>()
    Clone()
    CloneObject()
    Parent
    ObjNum
    PageIndex
    DocumentId
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronWord to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWord free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.