AutoPatientInfoRecorder/src/AntdUI/Lib/SVG/Text/SvgTextPath.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// THIS FILE IS PART OF SVG PROJECT
// THE SVG PROJECT IS AN OPENSOURCE LIBRARY LICENSED UNDER THE MS-PL License.
// COPYRIGHT (C) svg-net. ALL RIGHTS RESERVED.
// GITHUB: https://github.com/svg-net/SVG
using System;
using System.Drawing.Drawing2D;
namespace AntdUI.Svg
{
/// <summary>
/// The <see cref="SvgText"/> element defines a graphics element consisting of text.
/// </summary>
public class SvgTextPath : SvgTextBase
{
public override string ClassName { get => "textPath"; }
private Uri _referencedPath;
public override SvgUnitCollection Dx
{
get { return null; }
set { /* do nothing */ }
}
[SvgAttribute("startOffset")]
public virtual SvgUnit StartOffset
{
get { return (_dx.Count < 1 ? SvgUnit.None : _dx[0]); }
set
{
if (_dx.Count < 1)
{
_dx.Add(value);
}
else
{
_dx[0] = value;
}
}
}
[SvgAttribute("method")]
public virtual SvgTextPathMethod Method
{
get { return (Attributes["method"] == null ? SvgTextPathMethod.Align : (SvgTextPathMethod)Attributes["method"]); }
set { Attributes["method"] = value; }
}
[SvgAttribute("spacing")]
public virtual SvgTextPathSpacing Spacing
{
get { return (Attributes["spacing"] == null ? SvgTextPathSpacing.Exact : (SvgTextPathSpacing)Attributes["spacing"]); }
set { Attributes["spacing"] = value; }
}
[SvgAttribute("href", SvgAttributeAttribute.XLinkNamespace)]
public virtual Uri ReferencedPath
{
get { return _referencedPath; }
后面还有 29 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。