Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a boolean that represents if a character run has the Strikethrough effect, displaying a single line through the text.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public boolean Strike{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property Strike() As Boolean</p>Boolean
Remarks

MS Word equivalent: Format menu > Font... > Font tab > Effects section > Strikethrough

Example
Code Block
csharp
csharp
titleC#
            //--- Return Strike
          bool strike = oFont.Strike;

          //--- Set Shadow
          oFont.Strike = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return Strike
          Dim strike As Boolean = oFont.Strike

          '--- Set Strike
          oFont.Strike = True