示例#1
0
 ///<summary>Creates a BoxObject with the specified name, section, color and line thickness.  The box will be offset of its position in pixels according to the given X/Y values.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Color color, float lineThickness, int offSetX, int offSetY)
 {
     _name               = name;
     _sectionType        = sectionType;
     _foreColor          = color;
     _floatLineThickness = lineThickness;
     _offSetX            = offSetX;
     _offSetY            = offSetY;
     _reportObjectType   = ReportObjectType.BoxObject;
 }
示例#2
0
 ///<summary>Creates a LineObject with the specified name, section, color, line thickness, line orientation, line position and percent.  Orientation determines whether the line is horizontal or vertical.  Position determines which side of the section the line draws on.  Percent determines how much of available space the line will take up.  The line will be offset of its position in pixels according to the given X/Y values.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Color color, float lineThickness, LineOrientation lineOrientation, LinePosition linePosition, int linePercent, int offSetX, int offSetY)
 {
     _name               = name;
     _sectionType        = sectionType;
     _foreColor          = color;
     _floatLineThickness = lineThickness;
     _lineOrientation    = lineOrientation;
     _linePosition       = linePosition;
     _intLinePercent     = linePercent;
     _offSetX            = offSetX;
     _offSetY            = offSetY;
     _reportObjectType   = ReportObjectType.LineObject;
 }
示例#3
0
 ///<summary>Creates a TextObject with the specified name, section, location and size.  The staticText and font will determine what and how it displays, while the contentAlignment will determine the relative location in the text area.  The text will be offset of its position in pixels according to the given X/Y values.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Point location, Size size, string staticText, Font font, ContentAlignment contentAlignment, int offSetX, int offSetY)
 {
     _name             = name;
     _sectionType      = sectionType;
     _location         = location;
     _size             = size;
     _staticText       = staticText;
     _font             = font;
     _contentAlignment = contentAlignment;
     _offSetX          = offSetX;
     _offSetY          = offSetY;
     _foreColor        = Color.Black;
     _reportObjectType = ReportObjectType.TextObject;
 }
示例#4
0
 ///<summary>Currently only used for page numbers.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Point location, Size size, FieldValueType fieldValueType, SpecialFieldType specialType, Font font, ContentAlignment contentAlignment, string stringFormat)
 {
     _name             = name;
     _sectionType      = sectionType;
     _location         = location;
     _size             = size;
     _font             = font;
     _contentAlignment = contentAlignment;
     _stringFormat     = stringFormat;
     _fieldDefKind     = FieldDefKind.SpecialField;
     _fieldValueType   = fieldValueType;
     _specialFieldType = specialType;
     //defaults:
     _foreColor        = Color.Black;
     _reportObjectType = ReportObjectType.FieldObject;
 }
示例#5
0
 ///<summary>Mainly used from inside QueryObject.  Creates a SummaryFieldObject with the specified name, section, location, size, summaryOperation, summarizedFieldName, font, contentAlignment and stringFormat.  SummaryOperation determines what calculation will be used when summarizing the column.  SummarizedFieldName determines the field that will be summarized at the bottom of the column.  ContentAlignment determines where the text will be drawn in the box.  StringFormat is used to determined how a ToString() method call will format the field text.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Point location, Size size, SummaryOperation summaryOperation, string summarizedFieldName, Font font, ContentAlignment contentAlignment, string stringFormat)
 {
     _name                = name;
     _sectionType         = sectionType;
     _location            = location;
     _size                = size;
     _font                = font;
     _contentAlignment    = contentAlignment;
     _stringFormat        = stringFormat;
     _fieldDefKind        = FieldDefKind.SummaryField;
     _fieldValueType      = FieldValueType.Number;
     _summaryOperation    = summaryOperation;
     _summarizedFieldName = summarizedFieldName;
     //defaults:
     _foreColor        = Color.Black;
     _reportObjectType = ReportObjectType.FieldObject;
 }
示例#6
0
 ///<summary>Mainly used from inside QueryObject.  Creates a GroupSummaryObject with the specified name, section, location, size, color, summaryOperation, summarizedFieldName, font, datafield, and offsets.  SummaryOperation determines what calculation will be used when summarizing the group of column.  SummarizedFieldName determines the field that will be summarized and must be the same in each of the queries.  Datafield determines which column the summary will draw under.  The summary will be offset of its position in pixels according to the given X/Y values.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Point location, Size size, Color color, SummaryOperation summaryOperation, string summarizedFieldName, Font font, ContentAlignment contentAlignment, string datafield, int offSetX, int offSetY)
 {
     _name                = name;
     _sectionType         = sectionType;
     _location            = location;
     _size                = size;
     _dataFieldName       = datafield;
     _font                = font;
     _fieldDefKind        = FieldDefKind.SummaryField;
     _fieldValueType      = FieldValueType.Number;
     _summaryOperation    = summaryOperation;
     _summarizedFieldName = summarizedFieldName;
     _offSetX             = offSetX;
     _offSetY             = offSetY;
     _foreColor           = color;
     //defaults:
     _contentAlignment = contentAlignment;
     _reportObjectType = ReportObjectType.TextObject;
 }