using System; using System.Drawing; namespace Mesnac.Controls.ChemicalWeighing.HslCurve { /// /// 辅助线对象 /// // Token: 0x02000020 RID: 32 public class AuxiliaryLine : IDisposable { /// /// 实际的数据值 /// // Token: 0x170000EB RID: 235 // (get) Token: 0x060002C2 RID: 706 RVA: 0x000218C4 File Offset: 0x0001FAC4 // (set) Token: 0x060002C3 RID: 707 RVA: 0x000218CC File Offset: 0x0001FACC public float Value { get; set; } /// /// 实际的数据绘制的Y轴位置 /// // Token: 0x170000EC RID: 236 // (get) Token: 0x060002C4 RID: 708 RVA: 0x000218D5 File Offset: 0x0001FAD5 // (set) Token: 0x060002C5 RID: 709 RVA: 0x000218DD File Offset: 0x0001FADD public float PaintValue { get; set; } /// /// 实际的数据绘制的Y轴位置,备份使用的 /// // Token: 0x170000ED RID: 237 // (get) Token: 0x060002C6 RID: 710 RVA: 0x000218E6 File Offset: 0x0001FAE6 // (set) Token: 0x060002C7 RID: 711 RVA: 0x000218EE File Offset: 0x0001FAEE public float PaintValueBackUp { get; set; } /// /// 辅助线的颜色 /// // Token: 0x170000EE RID: 238 // (get) Token: 0x060002C8 RID: 712 RVA: 0x000218F7 File Offset: 0x0001FAF7 // (set) Token: 0x060002C9 RID: 713 RVA: 0x000218FF File Offset: 0x0001FAFF public Color LineColor { get; set; } /// /// 辅助线的虚线画笔资源 /// // Token: 0x170000EF RID: 239 // (get) Token: 0x060002CA RID: 714 RVA: 0x00021908 File Offset: 0x0001FB08 // (set) Token: 0x060002CB RID: 715 RVA: 0x00021910 File Offset: 0x0001FB10 public Pen PenDash { get; set; } /// /// 辅助线的实线画笔资源 /// // Token: 0x170000F0 RID: 240 // (get) Token: 0x060002CC RID: 716 RVA: 0x00021919 File Offset: 0x0001FB19 // (set) Token: 0x060002CD RID: 717 RVA: 0x00021921 File Offset: 0x0001FB21 public Pen PenSolid { get; set; } /// /// 辅助线的宽度 /// // Token: 0x170000F1 RID: 241 // (get) Token: 0x060002CE RID: 718 RVA: 0x0002192A File Offset: 0x0001FB2A // (set) Token: 0x060002CF RID: 719 RVA: 0x00021932 File Offset: 0x0001FB32 public float LineThickness { get; set; } /// /// 辅助线文本的画刷 /// // Token: 0x170000F2 RID: 242 // (get) Token: 0x060002D0 RID: 720 RVA: 0x0002193B File Offset: 0x0001FB3B // (set) Token: 0x060002D1 RID: 721 RVA: 0x00021943 File Offset: 0x0001FB43 public Brush LineTextBrush { get; set; } /// /// 是否左侧参考系,True为左侧,False为右侧 /// // Token: 0x170000F3 RID: 243 // (get) Token: 0x060002D2 RID: 722 RVA: 0x0002194C File Offset: 0x0001FB4C // (set) Token: 0x060002D3 RID: 723 RVA: 0x00021954 File Offset: 0x0001FB54 public bool IsLeftFrame { get; set; } /// /// 辅助线是否是虚线,默认为虚线 /// // Token: 0x170000F4 RID: 244 // (get) Token: 0x060002D4 RID: 724 RVA: 0x0002195D File Offset: 0x0001FB5D // (set) Token: 0x060002D5 RID: 725 RVA: 0x00021965 File Offset: 0x0001FB65 public bool IsDashStyle { get; set; } = true; /// /// 获取真实的画笔 /// /// // Token: 0x060002D6 RID: 726 RVA: 0x00021970 File Offset: 0x0001FB70 public Pen GetPen() { return this.IsDashStyle ? this.PenDash : this.PenSolid; } // Token: 0x060002D7 RID: 727 RVA: 0x00021998 File Offset: 0x0001FB98 protected virtual void Dispose(bool disposing) { bool flag = !this.disposedValue; if (flag) { if (disposing) { Pen penDash = this.PenDash; if (penDash != null) { penDash.Dispose(); } Pen penSolid = this.PenSolid; if (penSolid != null) { penSolid.Dispose(); } Brush lineTextBrush = this.LineTextBrush; if (lineTextBrush != null) { lineTextBrush.Dispose(); } } this.disposedValue = true; } } /// /// 释放内存信息 /// // Token: 0x060002D8 RID: 728 RVA: 0x000219F9 File Offset: 0x0001FBF9 public void Dispose() { this.Dispose(true); } // Token: 0x04000161 RID: 353 private bool disposedValue = false; } }