public void SetSize(int propertyIndex, ReportSize value) { if (m_sizeEntries == null) { m_sizeEntries = new Dictionary <int, ReportSize>(); } m_sizeEntries[propertyIndex] = value; }
public static ReportSize operator -(ReportSize size1, ReportSize size2) { if (size1.IsEmpty) { size1 = new ReportSize(0.0); } size1.SetPixels(size1.ToPixels() - size2.ToPixels()); return(size1); }
public override bool Equals(object obj) { if (obj == null || !(obj is ReportSize)) { return(false); } ReportSize reportSize = (ReportSize)obj; if (reportSize.Value == Value && reportSize.m_type == m_type) { return(true); } return(false); }
public override void Initialize() { base.Initialize(); ReportItems = new RdlCollection <ReportItem>(); Height = Constants.DefaultZeroSize; }
static ReportSize() { m_empty = default(ReportSize); m_defaultType = SizeTypes.Inch; SerializedDecimalDigits = 5; }