public override IGraphCloneable Clone(CloneContext cloneContext) { DxfMLineStyle dxfMlineStyle = (DxfMLineStyle)cloneContext.GetExistingClone((IGraphCloneable)this); if (dxfMlineStyle == null) { dxfMlineStyle = new DxfMLineStyle(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfMlineStyle); dxfMlineStyle.CopyFrom((DxfHandledObject)this, cloneContext); } return((IGraphCloneable)dxfMlineStyle); }
internal static DxfMLineStyle smethod_2(DxfModel model, bool useFixedHandles) { DxfMLineStyle dxfMlineStyle = new DxfMLineStyle(); if (useFixedHandles) { dxfMlineStyle.SetHandle(24UL); dxfMlineStyle.vmethod_2((IDxfHandledObject)model.DictionaryAcadMLineStyle); } dxfMlineStyle.Name = "STANDARD"; dxfMlineStyle.list_0.Add(new DxfMLineStyle.Element(0.5, Color.ByBlock, model.ByLayerLineType)); dxfMlineStyle.list_0.Add(new DxfMLineStyle.Element(-0.5, Color.ByBlock, model.ByLayerLineType)); return(dxfMlineStyle); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfMLineStyle dxfMlineStyle = (DxfMLineStyle)from; this.string_0 = dxfMlineStyle.string_0; this.mlineStyleFlags_0 = dxfMlineStyle.mlineStyleFlags_0; this.string_1 = dxfMlineStyle.string_1; this.color_0 = dxfMlineStyle.color_0; this.double_0 = dxfMlineStyle.double_0; this.double_1 = dxfMlineStyle.double_1; foreach (DxfMLineStyle.Element element in dxfMlineStyle.list_0) { this.list_0.Add(element.Clone(cloneContext)); } if (dxfMlineStyle.Handle != 24UL) { return; } this.SetHandle(24UL); }