# FarPoint.Win.Spread.DrawingSpace.TextShape

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_DrawingSpace_TextShape" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape" class="text-break">TextShape Class
</h1>
  <div class="markdown level0 summary"><p>Represents a text string shape object.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="../FarPoint.Win/FarPoint.Win.ElementWindowless.html">ElementWindowless</a></div>
    <div class="level2"><a class="xref" href="FarPoint.Win.Spread.DrawingSpace.PSObject.html">PSObject</a></div>
    <div class="level3"><a class="xref" href="FarPoint.Win.Spread.DrawingSpace.PSShape.html">PSShape</a></div>
    <div class="level4"><span class="xref">TextShape</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.ideserializationcallback">IDeserializationCallback</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.DrawingSpace.IPdfSupportPSObject.html">IPdfSupportPSObject</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.html">FarPoint.Win.Spread.DrawingSpace</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_DrawingSpace_TextShape_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextShape : PSShape, ISerializeSupport, IDeserializationCallback, IPdfSupportPSObject, ISerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextShape
    Inherits PSShape
    Implements ISerializeSupport, IDeserializationCallback, IPdfSupportPSObject, ISerializable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape__ctor" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.-ctor.html#FarPoint_Win_Spread_DrawingSpace_TextShape__ctor">TextShape()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new text string shape.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape__ctor_FarPoint_Win_Spread_DrawingSpace_TextShape_" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.#ctor(FarPoint.Win.Spread.DrawingSpace.TextShape)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.-ctor.html#FarPoint_Win_Spread_DrawingSpace_TextShape__ctor_FarPoint_Win_Spread_DrawingSpace_TextShape_">TextShape(TextShape)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new shape that is a copy of the specified shape.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.-ctor.html#FarPoint_Win_Spread_DrawingSpace_TextShape__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">TextShape(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new text string shape object from serialization.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_Font" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.Font">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.Font.html#FarPoint_Win_Spread_DrawingSpace_TextShape_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_Text" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.Text">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.Text.html#FarPoint_Win_Spread_DrawingSpace_TextShape_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text for the text string shape.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_Clone" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.Clone">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.Clone.html#FarPoint_Win_Spread_DrawingSpace_TextShape_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a copy of this shape.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.Deserialize.html#FarPoint_Win_Spread_DrawingSpace_TextShape_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.GetObjectData.html#FarPoint_Win_Spread_DrawingSpace_TextShape_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Serializes the shape object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_OnFontChanged_System_EventArgs_" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.OnFontChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.OnFontChanged.html#FarPoint_Win_Spread_DrawingSpace_TextShape_OnFontChanged_System_EventArgs_">OnFontChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns event information when the font for the element has changed.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_ResetText" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.ResetText">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.ResetText.html#FarPoint_Win_Spread_DrawingSpace_TextShape_ResetText">ResetText()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the text to the default value, which is &quot;abc&quot;.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_SetInitialShape" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.SetInitialShape">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.SetInitialShape.html#FarPoint_Win_Spread_DrawingSpace_TextShape_SetInitialShape">SetInitialShape()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the initial text shape.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_TextShape_SetShapeFromText_System_String_" data-uid="FarPoint.Win.Spread.DrawingSpace.TextShape.SetShapeFromText(System.String)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.TextShape.SetShapeFromText.html#FarPoint_Win_Spread_DrawingSpace_TextShape_SetShapeFromText_System_String_">SetShapeFromText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the shape of the text shape.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
