///<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; }
///<summary>Overload for SpecialField ReportObject</summary> public ReportObject(string thisSectionName, Point thisLocation, Size thisSize , FieldValueType thisValueType, SpecialFieldType thisSpecialType , Font thisFont, ContentAlignment thisTextAlign, string thisFormatString) { sectionName = thisSectionName; location = thisLocation; size = thisSize; font = thisFont; textAlign = thisTextAlign; formatString = thisFormatString; fieldKind = FieldDefKind.SpecialField; valueType = thisValueType; specialType = thisSpecialType; //defaults: foreColor = Color.Black; objectKind = ReportObjectKind.FieldObject; }
///<summary>Overload for SpecialField ReportObject</summary> public ReportObject(string name,string sectionName,Point location,Size size,FieldValueType fieldValueType,SpecialFieldType specialType,Font font,ContentAlignment contentAlignment,string stringFormat) { _name=name; _sectionName=sectionName; _location=location; _size=size; _font=font; _contentAlignment=contentAlignment; _stringFormat=stringFormat; _fieldDefKind=FieldDefKind.SpecialField; _fieldValueType=fieldValueType; _specialFieldType=specialType; //defaults: _foreColor=Color.Black; _reportObjectKind=ReportObjectKind.FieldObject; }
///<summary>Overload for SpecialField ReportObject</summary> public ReportObject(string thisSectionName,Point thisLocation,Size thisSize ,FieldValueType thisValueType,SpecialFieldType thisSpecialType ,Font thisFont,ContentAlignment thisTextAlign,string thisFormatString) { sectionName=thisSectionName; location=thisLocation; size=thisSize; font=thisFont; textAlign=thisTextAlign; formatString=thisFormatString; fieldKind=FieldDefKind.SpecialField; valueType=thisValueType; specialType=thisSpecialType; //defaults: foreColor=Color.Black; objectKind=ReportObjectKind.FieldObject; }