public void CopyFromShallow(DxfValue from) { this.dxfValueFormat_0 = from.dxfValueFormat_0; this.object_0 = from.object_0; this.string_0 = from.string_0; this.int_0 = from.int_0; }
public void CopyFrom(DxfContentFormat from, CloneContext cloneContext) { if (from.TextStyle == null) { this.dxfTextStyle_0 = (DxfTextStyle)null; } else if (cloneContext.SourceModel == cloneContext.TargetModel) { this.dxfTextStyle_0 = from.dxfTextStyle_0; } else if (!cloneContext.TargetModel.TextStyles.TryGetValue(from.dxfTextStyle_0.Name, out this.dxfTextStyle_0)) { if (cloneContext.ReferenceResolutionType == ReferenceResolutionType.CloneMissing) { this.dxfTextStyle_0 = (DxfTextStyle)from.dxfTextStyle_0.Clone(cloneContext); if (!cloneContext.CloneExact) { cloneContext.TargetModel.TextStyles.Add(this.dxfTextStyle_0); } } else if (cloneContext.ReferenceResolutionType == ReferenceResolutionType.FailOnMissing) { throw new DxfException("Missing text style with name " + from.dxfTextStyle_0.Name + " in target model."); } } this.double_0 = from.double_0; this.cellAlignment_0 = from.cellAlignment_0; this.color_0 = from.color_0; this.dxfValueFormat_0 = from.dxfValueFormat_0.Clone(); this.double_1 = from.double_1; this.short_0 = from.short_0; this.tableCellStylePropertyFlags_0 = from.tableCellStylePropertyFlags_0; this.tableCellStylePropertyFlags_1 = from.tableCellStylePropertyFlags_1; this.double_2 = from.double_2; }
public string GetValueString(DxfValueFormat defaultValueFormat) { if (this.string_0 == null) { this.string_0 = this.Value != null ? ((this.dxfValueFormat_0 == null || this.dxfValueFormat_0 is DxfValueFormat.None ? defaultValueFormat : this.dxfValueFormat_0) ?? DxfValueFormat.NoneInstance).GetValueString(this.Value) : string.Empty; } return(this.string_0); }
public void ResolveReferences(Class374 modelBuilder) { if (this.ulong_0 != 0UL) { this.class984_0.TextStyle = modelBuilder.method_4 <DxfTextStyle>(this.ulong_0); } if (!this.nullable_0.HasValue) { return; } this.class984_0.CellFormat = DxfValueFormat.Create(this.nullable_0, this.nullable_1, this.string_0); }
public void ResolveReferences(Class374 modelBuilder) { this.dxfContentFormat_0.method_4(DxfValueFormat.Create(this.valueDataType_0, this.valueUnitType_0)); if (!string.IsNullOrEmpty(this.string_0)) { this.dxfContentFormat_0.ValueFormat._FormatString = this.string_0; } if (this.ulong_0 == 0UL) { return; } this.dxfContentFormat_0.method_0(modelBuilder.method_4 <DxfTextStyle>(this.ulong_0)); }
public void CopyFrom(Class984 from, CloneContext cloneContext) { this.TextStyle = Class906.GetTextStyle(cloneContext, from.TextStyle); this.nullable_0 = from.nullable_0; this.nullable_1 = from.nullable_1; this.nullable_2 = from.nullable_2; this.nullable_3 = from.nullable_3; this.nullable_4 = from.nullable_4; this.dxfValueFormat_0 = from.dxfValueFormat_0 == null ? (DxfValueFormat)null : from.dxfValueFormat_0.Clone(); this.dxfTableBorderOverrides_0.CopyFrom(from.dxfTableBorderOverrides_0, cloneContext); this.dxfTableBorderOverrides_1.CopyFrom(from.dxfTableBorderOverrides_1, cloneContext); this.dxfTableBorderOverrides_2.CopyFrom(from.dxfTableBorderOverrides_2, cloneContext); this.dxfTableBorderOverrides_3.CopyFrom(from.dxfTableBorderOverrides_3, cloneContext); }
internal void Read(DxfXRecord xrecord) { ValueDataType?nullable1 = new ValueDataType?(); ValueUnitType?nullable2 = new ValueUnitType?(); string formatString = (string)null; foreach (DxfXRecordValue dxfXrecordValue in (List <DxfXRecordValue>)xrecord.Values) { switch (dxfXrecordValue.Code) { case 1: case 11: case 91: case 140: case 330: this.method_1(dxfXrecordValue.Value); continue; case 90: nullable1 = new ValueDataType?((ValueDataType)dxfXrecordValue.Value); continue; case 93: this.int_0 = (int)dxfXrecordValue.Value; continue; case 94: nullable2 = new ValueUnitType?((ValueUnitType)dxfXrecordValue.Value); continue; case 300: formatString = (string)dxfXrecordValue.Value; continue; case 310: this.object_0 = (object)DxfValue.smethod_3((byte[])dxfXrecordValue.Value); continue; default: continue; } } if (!nullable1.HasValue || !nullable2.HasValue) { return; } this.dxfValueFormat_0 = DxfValueFormat.Create(nullable1.Value, nullable2.Value, formatString); }
public DxfTableCellContent(DxfValueFormat format, DxfHandledObject value) : this(format) { this.dxfValue_0.SetValue(value); }
public void Add(DxfValueFormat format, string value) { this.Add(new DxfTableCellContent(format, value)); }
internal void method_0(DxfValueFormat format) { this.dxfValueFormat_0 = format; }
internal void method_4(DxfValueFormat cellFormat) { this.dxfValueFormat_0 = cellFormat; }
public void Add(DxfValueFormat format, DateTime value) { this.Add(new DxfTableCellContent(format, value)); }
public void Add(DxfValueFormat format, DxfHandledObject value) { this.Add(new DxfTableCellContent(format, value)); }
public void Add(DxfValueFormat format, WW.Math.Point3D value) { this.Add(new DxfTableCellContent(format, value)); }
public DxfTableCellContent(DxfValueFormat format, DateTime value) : this(format) { this.dxfValue_0.SetValue(value); }
public DxfTableCellContent(DxfValueFormat format, WW.Math.Point3D value) : this(format) { this.dxfValue_0.SetValue(value); }
public DxfTableCellContent(DxfValueFormat format) : this() { this.dxfContentFormat_0.method_4(format.Clone()); this.dxfValue_0.Format = format; }