TextStudioStackItemId
public struct TextStudioStackItemIdStable serialized identity shared by Text Studio appearance-stack items.
Methods
Section titled “Methods”
Create(string)
Section titled “Create(string)”public static TextStudioStackItemId Create(string value)Creates a validated identifier or throws when the value is malformed.
Parameters
| Name | Type |
|---|---|
value |
System.String |
Returns
TextStudio.TextStudioStackItemId
CreateUnique(string)
Section titled “CreateUnique(string)”public static TextStudioStackItemId CreateUnique(string itemNamespace)Creates a new authoring identity in the supplied namespace.
Parameters
| Name | Type |
|---|---|
itemNamespace |
System.String |
Returns
TextStudio.TextStudioStackItemId
TryCreate(string, out TextStudioStackItemId)
Section titled “TryCreate(string, out TextStudioStackItemId)”public static bool TryCreate(string value, out TextStudioStackItemId id)Attempts to create a canonical identifier without throwing.
Parameters
| Name | Type |
|---|---|
value |
System.String |
id |
TextStudio.TextStudioStackItemId |
Returns
System.Boolean
IsCanonical(string)
Section titled “IsCanonical(string)”public static bool IsCanonical(string value)Returns true when a string follows the stable namespaced ID grammar.
Parameters
| Name | Type |
|---|---|
value |
System.String |
Returns
System.Boolean
Equals(TextStudioStackItemId)
Section titled “Equals(TextStudioStackItemId)”public bool Equals(TextStudioStackItemId other)Parameters
| Name | Type |
|---|---|
other |
TextStudio.TextStudioStackItemId |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String
Operators
Section titled “Operators”
operator ==(TextStudioStackItemId, TextStudioStackItemId)
Section titled “operator ==(TextStudioStackItemId, TextStudioStackItemId)”public static bool operator ==(TextStudioStackItemId left, TextStudioStackItemId right)Reports whether both values identify the same persistent stack item.
Parameters
| Name | Type |
|---|---|
left |
TextStudio.TextStudioStackItemId |
right |
TextStudio.TextStudioStackItemId |
Returns
System.Boolean
operator !=(TextStudioStackItemId, TextStudioStackItemId)
Section titled “operator !=(TextStudioStackItemId, TextStudioStackItemId)”public static bool operator !=(TextStudioStackItemId left, TextStudioStackItemId right)Reports whether the values identify different persistent stack items.
Parameters
| Name | Type |
|---|---|
left |
TextStudio.TextStudioStackItemId |
right |
TextStudio.TextStudioStackItemId |
Returns
System.Boolean
Properties
Section titled “Properties”
public string Value { get; }Canonical namespaced identifier.
Returns
System.String
IsValid
Section titled “IsValid”public bool IsValid { get; }Whether the identifier is canonical and safe to persist.
Returns
System.Boolean