Wiki Markup |
---|
{description} {excerpt}Sets or returns an {{int}} that represents the spacing between characters in a character run in twips. One twip = \(1/20 pt\) or \( 1/1440 in\). This number can be negative \(decreased spacing\) or positive \(increased spacing\).{excerpt} {signature:C#} public int CharacterSpacing{ get; set; } {signature}{signature:vb.net} Public Property CharacterSpacing() As Integer {signature} {remarks}The minimum value is \-1584 pts and the maximum value is 1584 pts. Values beyond this will be automatically adjusted. MS Word equivalent: Format menu > Font... > Character spacing tab > Spacing: {remarks} {example}{code:csharp|title=C#} //--- Return CharacterSpacing int charSpacing = oFont.CharacterSpacing; //--- Set CharacterSpacing to 2 points oFont.CharacterSpacing = 40; {code} {code:vb.net|title=vb.net} '--- Return CharacterSpacing Dim charSpacing As Integer = oFont.CharacterSpacing '--- Set CharacterSpacing to 2 points oFont.CharacterSpacing = 40 {code} {example} |
Page History
Overview
Content Tools