예제 #1
0
 public ReportSize ChangeType(SizeTypes type)
 {
     if (type == this.m_type)
     {
         return(this);
     }
     return(new ReportSize(ReportSize.ConvertToUnits(this.ConvertToPixels(this.m_value, this.m_type), type), type));
 }
예제 #2
0
 public static ReportSize FromPixels(double pixels, SizeTypes type)
 {
     return(new ReportSize(ReportSize.ConvertToUnits(pixels, type), type));
 }
예제 #3
0
 public void SetPixels(double pixels)
 {
     this.m_value = ReportSize.ConvertToUnits(pixels, this.m_type);
 }