Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
 public override bool Equals(object obj)
 {
     if (obj != null && obj is ReportSize)
     {
         ReportSize reportSize = (ReportSize)obj;
         if (reportSize.Value == this.Value && reportSize.m_type == this.m_type)
         {
             return(true);
         }
         return(false);
     }
     return(false);
 }
Exemplo n.º 3
0
 public string ToString(string format, IFormatProvider provider)
 {
     if (this.IsEmpty)
     {
         return(string.Empty);
     }
     return(string.Format(provider, ReportSize.m_serializationFormat, this.SerializedValue, ReportSize.GetStringFromType(this.m_type)));
 }
Exemplo n.º 4
0
 public static ReportSize FromPixels(double pixels, SizeTypes type)
 {
     return(new ReportSize(ReportSize.ConvertToUnits(pixels, type), type));
 }
Exemplo n.º 5
0
 public void SetPixels(double pixels)
 {
     this.m_value = ReportSize.ConvertToUnits(pixels, this.m_type);
 }
Exemplo n.º 6
0
 public ReportSize(string value, IFormatProvider provider)
 {
     this = new ReportSize(value, provider, ReportSize.DefaultType);
 }
Exemplo n.º 7
0
 public ReportSize(string value)
 {
     this = new ReportSize(value, CultureInfo.CurrentCulture);
 }
Exemplo n.º 8
0
 static ReportSize()
 {
     ReportSize.m_empty                 = default(ReportSize);
     ReportSize.m_defaultType           = SizeTypes.Inch;
     ReportSize.SerializedDecimalDigits = 5;
 }
Exemplo n.º 9
0
 public override void Initialize()
 {
     base.Initialize();
     this.ReportItems = new RdlCollection <ReportItem>();
     this.Height      = Constants.DefaultZeroSize;
 }