예제 #1
0
 public void SetSize(int propertyIndex, ReportSize value)
 {
     if (m_sizeEntries == null)
     {
         m_sizeEntries = new Dictionary <int, ReportSize>();
     }
     m_sizeEntries[propertyIndex] = value;
 }
예제 #2
0
 public static ReportSize operator -(ReportSize size1, ReportSize size2)
 {
     if (size1.IsEmpty)
     {
         size1 = new ReportSize(0.0);
     }
     size1.SetPixels(size1.ToPixels() - size2.ToPixels());
     return(size1);
 }
예제 #3
0
        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);
        }
예제 #4
0
 public override void Initialize()
 {
     base.Initialize();
     ReportItems = new RdlCollection <ReportItem>();
     Height      = Constants.DefaultZeroSize;
 }
예제 #5
0
 static ReportSize()
 {
     m_empty                 = default(ReportSize);
     m_defaultType           = SizeTypes.Inch;
     SerializedDecimalDigits = 5;
 }