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
|
Edit this page
View Source
Tag(uint)
Initializes a new instance of the Tag struct.
Declaration
Parameters
Type |
Name |
Description |
uint |
value |
The tag value.
|
Properties
|
Edit this page
View Source
Value
Gets the Tag value as 32 bit unsigned integer.
Declaration
public uint Value { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(Tag)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Tag other)
Parameters
Type |
Name |
Description |
Tag |
other |
An object to compare with this object.
|
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
|
Edit this page
View Source
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
|
Edit this page
View Source
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
|
Edit this page
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
|
Edit this page
View Source
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
The fully qualified type name.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(Tag, Tag)
Declaration
public static bool operator ==(Tag left, Tag right)
Parameters
Type |
Name |
Description |
Tag |
left |
|
Tag |
right |
|
Returns
|
Edit this page
View Source
Declaration
public static implicit operator Tag(FeatureTags value)
Parameters
Returns
|
Edit this page
View Source
implicit operator Tag(uint)
Declaration
public static implicit operator Tag(uint value)
Parameters
Type |
Name |
Description |
uint |
value |
|
Returns
|
Edit this page
View Source
operator !=(Tag, Tag)
Declaration
public static bool operator !=(Tag left, Tag right)
Parameters
Type |
Name |
Description |
Tag |
left |
|
Tag |
right |
|
Returns
Implements