# C1.C1Preview.Tag

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_Tag" data-uid="C1.C1Preview.Tag" class="text-break">Tag Class
</h1>
  <div class="markdown level0 summary"><p>Represents a user-defined tag.</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="C1.C1Preview.NamedCollectionItem.html">NamedCollectionItem</a></div>
    <div class="level2"><a class="xref" href="C1.C1Preview.TagBase.html">TagBase</a></div>
    <div class="level3"><span class="xref">Tag</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_Tag_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(Tag.TagConverter))]
public class Tag : TagBase, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(Tag.TagConverter))&gt;
Public Class Tag
    Inherits TagBase
    Implements ICloneable</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="C1_C1Preview_Tag__ctor_System_String_" data-uid="C1.C1Preview.Tag.#ctor(System.String)">
          <a class="xref" href="C1.C1Preview.Tag.-ctor.html#C1_C1Preview_Tag__ctor_System_String_">Tag(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.Tag.html">Tag</a> class with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag__ctor_System_String_System_Object_" data-uid="C1.C1Preview.Tag.#ctor(System.String,System.Object)">
          <a class="xref" href="C1.C1Preview.Tag.-ctor.html#C1_C1Preview_Tag__ctor_System_String_System_Object_">Tag(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.Tag.html">Tag</a> class with the specified name and value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag__ctor_System_String_System_Object_System_Type_" data-uid="C1.C1Preview.Tag.#ctor(System.String,System.Object,System.Type)">
          <a class="xref" href="C1.C1Preview.Tag.-ctor.html#C1_C1Preview_Tag__ctor_System_String_System_Object_System_Type_">Tag(string, object, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.Tag.html">Tag</a> class with the specified name, value and type.</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="C1_C1Preview_Tag_Calculated" data-uid="C1.C1Preview.Tag.Calculated">
          <a class="xref" href="C1.C1Preview.Tag.Calculated.html#C1_C1Preview_Tag_Calculated">Calculated</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the <a class="xref" href="C1.C1Preview.Tag.Value.html#C1_C1Preview_Tag_Value">Value</a>
property contains a string with a script expression
which must be evaluated when the tag is rendered.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag_Description" data-uid="C1.C1Preview.Tag.Description">
          <a class="xref" href="C1.C1Preview.Tag.Description.html#C1_C1Preview_Tag_Description">Description</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the description of the tag.
If not empty, used as the label in the tag input dialog.
(If Description is empty, <a class="xref" href="C1.C1Preview.NamedCollectionItem.Name.html#C1_C1Preview_NamedCollectionItem_Name">Name</a> is shown in the input dialog instead.)</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag_InputParams" data-uid="C1.C1Preview.Tag.InputParams">
          <a class="xref" href="C1.C1Preview.Tag.InputParams.html#C1_C1Preview_Tag_InputParams">InputParams</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="C1.C1Preview.TagInputParams.html">TagInputParams</a> object that is used by the tag input dialog
to customize the editor for the current tag. By default, this property is null.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag_SerializeValue" data-uid="C1.C1Preview.Tag.SerializeValue">
          <a class="xref" href="C1.C1Preview.Tag.SerializeValue.html#C1_C1Preview_Tag_SerializeValue">SerializeValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the <a class="xref" href="C1.C1Preview.Tag.Value.html#C1_C1Preview_Tag_Value">Value</a> of the current tag
should be serialized. The default is <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag_ShowInDialog" data-uid="C1.C1Preview.Tag.ShowInDialog">
          <a class="xref" href="C1.C1Preview.Tag.ShowInDialog.html#C1_C1Preview_Tag_ShowInDialog">ShowInDialog</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to show the current tag and
allow the user to edit its <a class="xref" href="C1.C1Preview.Tag.Value.html#C1_C1Preview_Tag_Value">Value</a> in the tags input dialog.
The default is <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag_Type" data-uid="C1.C1Preview.Tag.Type">
          <a class="xref" href="C1.C1Preview.Tag.Type.html#C1_C1Preview_Tag_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current tag type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag_Value" data-uid="C1.C1Preview.Tag.Value">
          <a class="xref" href="C1.C1Preview.Tag.Value.html#C1_C1Preview_Tag_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current tag value.</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="C1_C1Preview_Tag_AssignFrom_C1_C1Preview_NamedCollectionItem_" data-uid="C1.C1Preview.Tag.AssignFrom(C1.C1Preview.NamedCollectionItem)">
          <a class="xref" href="C1.C1Preview.Tag.AssignFrom.html#C1_C1Preview_Tag_AssignFrom_C1_C1Preview_NamedCollectionItem_">AssignFrom(NamedCollectionItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the properties of the specified object to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Tag_SetName_System_String_" data-uid="C1.C1Preview.Tag.SetName(System.String)">
          <a class="xref" href="C1.C1Preview.Tag.SetName.html#C1_C1Preview_Tag_SetName_System_String_">SetName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the name of the current tag.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
