mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-07-16 07:59:46 +08:00
21 lines
446 B
C#
21 lines
446 B
C#
namespace CPF.Mac.CoreText
|
|
{
|
|
internal class CTParagraphStyleSpecifierByteValue : CTParagraphStyleSpecifierValue
|
|
{
|
|
private byte value;
|
|
|
|
internal override int ValueSize => 1;
|
|
|
|
public CTParagraphStyleSpecifierByteValue(CTParagraphStyleSpecifier spec, byte value)
|
|
: base(spec)
|
|
{
|
|
this.value = value;
|
|
}
|
|
|
|
internal override void WriteValue(CTParagraphStyleSettingValue[] values, int index)
|
|
{
|
|
values[index].int8 = value;
|
|
}
|
|
}
|
|
}
|