VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.TextSpacing Struct Reference

Contains information about text spacing. More...

Inheritance diagram for VectSharp.TextSpacing:

Public Member Functions

 TextSpacing (double nonWhitespaceScale, double nonWhitespaceAdd, double whitespaceScale, double whitespaceAdd)
 Create a new TextSpacing with the specified spacing parameters. More...
 
 TextSpacing (double scale, double add)
 Create a new TextSpacing with the specified spacing parameters. More...
 
bool Equals (TextSpacing other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (TextSpacing left, TextSpacing right)
 Compares two TextSpacing objects. More...
 
static bool operator!= (TextSpacing left, TextSpacing right)
 Compares two TextSpacing objects. More...
 

Properties

double WhitespaceScale [get]
 Scaling factor for whitespace characters. More...
 
double WhitespaceAdd [get]
 Increment for whitespace characters. More...
 
double NonWhitespaceScale [get]
 Scaling factor for non-whitespace characters. More...
 
double NonWhitespaceAdd [get]
 Increment for non-whitespace characters. More...
 
static TextSpacing Default = new TextSpacing(1, 0) [get]
 Default text spacing. More...
 

Detailed Description

Contains information about text spacing.

Definition at line 74 of file Enums.cs.

Constructor & Destructor Documentation

◆ TextSpacing() [1/2]

VectSharp.TextSpacing.TextSpacing ( double  nonWhitespaceScale,
double  nonWhitespaceAdd,
double  whitespaceScale,
double  whitespaceAdd 
)

Create a new TextSpacing with the specified spacing parameters.

Parameters
nonWhitespaceScaleScaling factor for non-whitespace characters.
nonWhitespaceAddIncrement for non-whitespace characters.
whitespaceScaleScaling factor for whitespace characters.
whitespaceAddIncrement for whitespace characters.

Definition at line 104 of file Enums.cs.

◆ TextSpacing() [2/2]

VectSharp.TextSpacing.TextSpacing ( double  scale,
double  add 
)

Create a new TextSpacing with the specified spacing parameters.

Parameters
scaleScaling factor.
addIncrement.

Definition at line 117 of file Enums.cs.

Member Function Documentation

◆ Equals() [1/2]

override bool VectSharp.TextSpacing.Equals ( object  obj)

Definition at line 137 of file Enums.cs.

◆ Equals() [2/2]

bool VectSharp.TextSpacing.Equals ( TextSpacing  other)

Definition at line 131 of file Enums.cs.

◆ GetHashCode()

override int VectSharp.TextSpacing.GetHashCode ( )

Definition at line 150 of file Enums.cs.

◆ operator!=()

static bool VectSharp.TextSpacing.operator!= ( TextSpacing  left,
TextSpacing  right 
)
static

Compares two TextSpacing objects.

Parameters
leftThe first TextSpacing object.
rightThe second TextSpacing object.
Returns
false if the two TextSpacing objects specify the same spacing parameters, true otherwise.

Definition at line 180 of file Enums.cs.

◆ operator==()

static bool VectSharp.TextSpacing.operator== ( TextSpacing  left,
TextSpacing  right 
)
static

Compares two TextSpacing objects.

Parameters
leftThe first TextSpacing object.
rightThe second TextSpacing object.
Returns
true if the two TextSpacing objects specify the same spacing parameters, false otherwise.

Definition at line 169 of file Enums.cs.

Property Documentation

◆ Default

TextSpacing VectSharp.TextSpacing.Default = new TextSpacing(1, 0)
staticget

Default text spacing.

Definition at line 128 of file Enums.cs.

◆ NonWhitespaceAdd

double VectSharp.TextSpacing.NonWhitespaceAdd
get

Increment for non-whitespace characters.

Definition at line 95 of file Enums.cs.

◆ NonWhitespaceScale

double VectSharp.TextSpacing.NonWhitespaceScale
get

Scaling factor for non-whitespace characters.

Definition at line 90 of file Enums.cs.

◆ WhitespaceAdd

double VectSharp.TextSpacing.WhitespaceAdd
get

Increment for whitespace characters.

Definition at line 84 of file Enums.cs.

◆ WhitespaceScale

double VectSharp.TextSpacing.WhitespaceScale
get

Scaling factor for whitespace characters.

Definition at line 79 of file Enums.cs.


The documentation for this struct was generated from the following file: