TextStudioRenderPropertyView
public readonly struct TextStudioRenderPropertyViewTransient read-only view over pooled renderer-property planes.
Methods
Section titled “Methods”
GetGlyph(int)
Section titled “GetGlyph(int)”public TextStudioRenderPropertyGlyphView GetGlyph(int glyphIndex)Creates a read-only view scoped to the supplied glyph index.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
Returns
TextStudio.TextStudioRenderPropertyGlyphView
HasAnyForGlyph(int)
Section titled “HasAnyForGlyph(int)”public bool HasAnyForGlyph(int glyphIndex)Returns whether this valid property view contains any applied render-property value for the supplied glyph.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
Returns
System.Boolean
TryGet(string, int, out TextStudioRenderPropertyValue, out TextStudioSurfaceMask)
Section titled “TryGet(string, int, out TextStudioRenderPropertyValue, out TextStudioSurfaceMask)”public bool TryGet(string propertyId, int glyphIndex, out TextStudioRenderPropertyValue value, out TextStudioSurfaceMask surfaceMask)Attempts to read an applied typed render-property value and its surface mask for the supplied glyph.
Parameters
| Name | Type |
|---|---|
propertyId |
System.String |
glyphIndex |
System.Int32 |
value |
TextStudio.TextStudioRenderPropertyValue |
surfaceMask |
TextStudio.TextStudioSurfaceMask |
Returns
System.Boolean
Properties
Section titled “Properties”
IsCreated
Section titled “IsCreated”public bool IsCreated { get; }Returns
System.Boolean
IsEmpty
Section titled “IsEmpty”public bool IsEmpty { get; }Returns
System.Boolean
PropertyCount
Section titled “PropertyCount”public int PropertyCount { get; }Returns
System.Int32
GlyphCount
Section titled “GlyphCount”public int GlyphCount { get; }Returns
System.Int32
ContentVersion
Section titled “ContentVersion”public uint ContentVersion { get; }Returns
System.UInt32