//Creates a new element by copying an existing element //Layer should be assigned by the system and should not be copied public Element(Element prototype) { _key = string.Empty; _borderColor = prototype.BorderColor; _borderStyle = prototype.BorderStyle; _borderWidth = prototype.BorderWidth; _smoothingMode = prototype.SmoothingMode; _customPen = prototype.CustomPen; _drawShadow = prototype.DrawShadow; _opacity = prototype.Opacity; _tooltip = prototype.Tooltip; _visible = prototype.Visible; _cursor = prototype.Cursor; _path = prototype.GetPath(); _rectF = prototype.Bounds; _model = prototype.Model; _tag = prototype.Tag; }
//Creates a new element by copying an existing element //Layer should be assigned by the system and should not be copied public Element(Element prototype) { mKey = string.Empty; mLayerKey = string.Empty; mBorderColor = prototype.BorderColor; mBorderStyle = prototype.BorderStyle; mBorderWidth = prototype.BorderWidth; mSmoothingMode = prototype.SmoothingMode; mCustomPen = prototype.CustomPen; mDrawShadow = prototype.DrawShadow; mOpacity = prototype.Opacity; mTooltip = prototype.Tooltip; mVisible = prototype.Visible; mCursor = prototype.Cursor; mPath = prototype.GetPath(); mRectF = prototype.Rectangle; mContainer = prototype.Container; mTag = prototype.Tag; }
//Creates a new element by copying an existing element //Layer should be assigned by the system and should not be copied public Element(Element prototype) { mKey = string.Empty; mLayerKey = string.Empty; mBorderColor = prototype.BorderColor; mBorderStyle = prototype.BorderStyle; mBorderWidth = prototype.BorderWidth; mSmoothingMode = prototype.SmoothingMode; mCustomPen = prototype.CustomPen; mDrawShadow = prototype.DrawShadow; mOpacity = prototype.Opacity; mTooltip = prototype.Tooltip; mVisible = prototype.Visible; mCursor = prototype.Cursor; mPath = prototype.GetPath(); mRectF = prototype.Rectangle; mContainer = prototype.Container; mTag = prototype.Tag; }