Beispiel #1
0
        private void CopyProperties(IStroke stroke, IStroke other)
        {
            if (stroke == null || other == null)
            {
                if (stroke.StrokeStyle == other.StrokeStyle)
                {
                    stroke.CopyProperties(other);
                }
                else
                {
                    switch (stroke.StrokeStyle)
                    {
                    case StrokeStyle.Simple:
                        ISimpleStroke simpleStroke = stroke as ISimpleStroke;
                        if (other is ISimpleStroke otherSimpleStroke)
                        {
                            CopyProperties(simpleStroke, otherSimpleStroke);
                        }
                        break;

                    case StrokeStyle.Cartographic:
                        break;

                    case StrokeStyle.Marker:
                        break;

                    default:     // notimplement
                        break;
                    }
                }
            }
        }