Struct Tag
Data type for tag identifiers. Tags are four byte integers, each byte representing a character.
Tags are used to identify tables, design-variation axes, scripts, languages, font features, and baselines with
human-readable names.
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct Tag : IEquatable<Tag>
Constructors
|
Improve this Doc
View Source
Tag(UInt32)
Initializes a new instance of the Tag struct.
Declaration
Parameters
Type |
Name |
Description |
UInt32 |
value |
The tag value.
|
Properties
|
Improve this Doc
View Source
Value
Gets the Tag value as 32 bit unsigned integer.
Declaration
public readonly uint Value { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(Tag)
Declaration
public readonly bool Equals(Tag other)
Parameters
Type |
Name |
Description |
Tag |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Parse(String)
Converts the string representation of a number to its Tag equivalent.
Declaration
public static Tag Parse(string value)
Parameters
Type |
Name |
Description |
String |
value |
A string containing a tag to convert.
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(Tag, Tag)
Declaration
public static bool operator ==(Tag left, Tag right)
Parameters
Type |
Name |
Description |
Tag |
left |
|
Tag |
right |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator Tag(FeatureTags value)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(UInt32 to Tag)
Declaration
public static implicit operator Tag(uint value)
Parameters
Type |
Name |
Description |
UInt32 |
value |
|
Returns
|
Improve this Doc
View Source
Inequality(Tag, Tag)
Declaration
public static bool operator !=(Tag left, Tag right)
Parameters
Type |
Name |
Description |
Tag |
left |
|
Tag |
right |
|
Returns
Implements