# GrapeCity.Documents.Text.TextLayout.SoftHyphenReplacementCharCode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Text_TextLayout_SoftHyphenReplacementCharCode_" data-uid="GrapeCity.Documents.Text.TextLayout.SoftHyphenReplacementCharCode*">SoftHyphenReplacementCharCode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Text_TextLayout_SoftHyphenReplacementCharCode_" data-uid="GrapeCity.Documents.Text.TextLayout.SoftHyphenReplacementCharCode*"></a>
<h4 id="GrapeCity_Documents_Text_TextLayout_SoftHyphenReplacementCharCode" data-uid="GrapeCity.Documents.Text.TextLayout.SoftHyphenReplacementCharCode">SoftHyphenReplacementCharCode</h4>
<div class="markdown level1 summary"><p>Gets or sets a UTF-32 character code used as replacement for soft hyphen
characters (0x00AD) at ends of lines when breaking words across lines.</p>
<p>
The default is 0x002D (the Unicode hyphen-minus character).
</p>
<p>
Setting this to 0 breaks words without showing any visible hyphen character.
</p>
<p>
Setting this to -1 prevents breaking words at soft hyphens.
</p>
Note that if this property is changed, either <a class="xref" href="GrapeCity.Documents.Text.TextLayout.RecalculateGlyphs.html#GrapeCity_Documents_Text_TextLayout_RecalculateGlyphs">RecalculateGlyphs()</a>
or <a class="xref" href="GrapeCity.Documents.Text.TextLayout.PerformLayout.html#GrapeCity_Documents_Text_TextLayout_PerformLayout_System_Boolean_">PerformLayout(bool)</a> with true as the parameter must be called
for the changes to be processed correctly.
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int SoftHyphenReplacementCharCode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property SoftHyphenReplacementCharCode As Integer</code></pre>
</div>
</div>
