mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-07-15 23:13:33 +08:00
21 lines
454 B
C#
21 lines
454 B
C#
namespace CPF.Mac.CoreText
|
|
{
|
|
internal class CTParagraphStyleSpecifierSingleValue : CTParagraphStyleSpecifierValue
|
|
{
|
|
private float value;
|
|
|
|
internal override int ValueSize => 4;
|
|
|
|
public CTParagraphStyleSpecifierSingleValue(CTParagraphStyleSpecifier spec, float value)
|
|
: base(spec)
|
|
{
|
|
this.value = value;
|
|
}
|
|
|
|
internal override void WriteValue(CTParagraphStyleSettingValue[] values, int index)
|
|
{
|
|
values[index].single = value;
|
|
}
|
|
}
|
|
}
|