Click or drag to resize

TextSpacing Structure

Represents inter-paragraph and inter-line spacing specified either in percentages of the text size or as an absolute value.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
Syntax
public struct TextSpacing : IEquatable<TextSpacing>

The TextSpacing type exposes the following members.

Properties
  NameDescription
Public propertyIsPercent
Gets a value indicating whether this text spacing is specified in percentages.
Public propertyPercent
Gets the text spacing percentage.
Public propertyValue
Gets the text spacing value.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to this TextSpacing instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(TextSpacing)
Determines whether the other TextSpacing is equal to this TextSpacing instance.
Public methodStatic memberExactly
Creates a text spacing instance from the specified absolute value.
Public methodGetHashCode
Returns a hash code for this TextSpacing instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberMultiple

Creates a text spacing instance from the specified percentage value.

If percent parameter is equal to 1, then returned text spacing is equal to Single. If percent parameter is equal to 1.5, then returned text spacing is equal to OnePointFiveLines. If percent parameter is equal to 2, then returned text spacing is equal to Double.

Public methodToString
Returns a String that represents this TextSpacing instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether first and second TextSpacings are equal.
Public operatorStatic memberInequality
Determines whether first and second TextSpacings are not equal.
Top
Fields
  NameDescription
Public fieldStatic memberDouble
Text spacing that is equivalent to 200% of the text size.
Public fieldStatic memberNone
Text spacing is absent (zero).
Public fieldStatic memberOnePointFiveLines
Text spacing that is equivalent to 150% of the text size.
Public fieldStatic memberSingle
Text spacing that is equivalent to 100% of the text size.
Top
See Also