コード例 #1
0
ファイル: Parser.cs プロジェクト: manWhoKnowsHowToFly/SVG.Net
        public static PathCommandArgs Parse(PathCommandType commandType, string sequence, PathLocationInfo pathLocationInfo = null)
        {
            PathCommandArgs commandArgs = CreateInstance(commandType);

            commandArgs.PathLocationInfo       = pathLocationInfo;
            commandArgs.UseRelativeCoordinates = Char.IsLower(sequence.First());
            commandArgs.ParseCore(sequence.Substring(1), pathLocationInfo);
            return(commandArgs);
        }
コード例 #2
0
ファイル: Parser.cs プロジェクト: manWhoKnowsHowToFly/SVG.Net
 protected virtual void ParseCore(string sequence, PathLocationInfo pathLocationInfo = null) {
     Type = GetPathCommandType(sequence.First());
     Args = PathCommandArgs.Parse(Type, sequence);
 }
コード例 #3
0
ファイル: Parser.cs プロジェクト: manWhoKnowsHowToFly/SVG.Net
 protected virtual void ParseCore(string sequence, PathLocationInfo pathLocationInfo = null)
 {
     Type = GetPathCommandType(sequence.First());
     Args = PathCommandArgs.Parse(Type, sequence);
 }