示例#1
0
        public static void AddMark(this LineWalker walker, double len, LineWalkDashStyle daskStyle)
        {
            switch (daskStyle)
            {
            default: throw new NotSupportedException();

            case LineWalkDashStyle.Solid:
                walker.AddWalkMark(new LineWalkerMark(len, SimpleSolidLine));
                break;

            case LineWalkDashStyle.Blank:
                walker.AddWalkMark(new LineWalkerMark(len, SimpleBlankLine));
                break;
            }
        }
示例#2
0
        public static void AddMark(this LineWalker walker, double len, LineSegmentDelegate segDel)
        {
            var mark = new LineWalkerMark(len, segDel);

            walker.AddWalkMark(mark);
        }