Beispiel #1
0
 public static SheetFieldDef NewOutput(string fieldName, float fontSize, string fontName, bool fontIsBold,
                                       int xPos, int yPos, int width, int height, HorizontalAlignment textAlign, KnownColor itemColor = KnownColor.Black,
                                       GrowthBehaviorEnum growthBehavior = GrowthBehaviorEnum.None)
 {
     return(new SheetFieldDef(SheetFieldType.OutputText, fieldName, "", fontSize, fontName, fontIsBold,
                              xPos, yPos, width, height, growthBehavior, "", false, itemColor, textAlign, isNew: true));
 }
Beispiel #2
0
 private SheetFieldDef(SheetFieldType fieldType, string fieldName, string fieldValue,
                       float fontSize, string fontName, bool fontIsBold,
                       int xPos, int yPos, int width, int height,
                       GrowthBehaviorEnum growthBehavior, string radioButtonValue, bool isPaymentOption = false, KnownColor itemColor = KnownColor.Black, HorizontalAlignment textAlign = HorizontalAlignment.Left, bool isNew = false)
 {
     FieldType                = fieldType;
     FieldName                = fieldName;
     FieldValue               = fieldValue;
     FontSize                 = fontSize;
     FontName                 = fontName;
     FontIsBold               = fontIsBold;
     XPos                     = xPos;
     YPos                     = yPos;
     Width                    = width;
     Height                   = height;
     GrowthBehavior           = growthBehavior;
     RadioButtonValue         = radioButtonValue;
     IsNew                    = isNew;
     IsPaymentOption          = isPaymentOption;
     ItemColor                = Color.FromKnownColor(itemColor);
     TextAlign                = textAlign;
     RadioButtonGroup         = "";
     ImageData                = "";
     ReportableName           = "";
     UiLabelMobile            = "";
     UiLabelMobileRadioButton = "";
 }
Beispiel #3
0
        public static SheetFieldDef NewGrid(string fieldName, int xPos, int yPos, int width, int height, float fontSize = 8.5f, string fontName = ""
                                            , GrowthBehaviorEnum growthBehavior = GrowthBehaviorEnum.DownGlobal)
        {
            SheetFieldDef retVal = new SheetFieldDef(SheetFieldType.Grid, fieldName, "", fontSize, fontName, false,
                                                     xPos, yPos, width, height, growthBehavior, "", isNew: true);

            return(retVal);
        }
Beispiel #4
0
 public SheetFieldDef(SheetFieldType fieldType, string fieldName, string fieldValue,
                      float fontSize, string fontName, bool fontIsBold,
                      int xPos, int yPos, int width, int height,
                      GrowthBehaviorEnum growthBehavior, string radioButtonValue)
 {
     FieldType        = fieldType;
     FieldName        = fieldName;
     FieldValue       = fieldValue;
     FontSize         = fontSize;
     FontName         = fontName;
     FontIsBold       = fontIsBold;
     XPos             = xPos;
     YPos             = yPos;
     Width            = width;
     Height           = height;
     GrowthBehavior   = growthBehavior;
     RadioButtonValue = radioButtonValue;
 }
Beispiel #5
0
        public SheetFieldDef(SheetFieldType fieldType,string fieldName,string fieldValue,
			float fontSize,string fontName,bool fontIsBold,
			int xPos,int yPos,int width,int height,
			GrowthBehaviorEnum growthBehavior,string radioButtonValue)
        {
            FieldType=fieldType;
            FieldName=fieldName;
            FieldValue=fieldValue;
            FontSize=fontSize;
            FontName=fontName;
            FontIsBold=fontIsBold;
            XPos=xPos;
            YPos=yPos;
            Width=width;
            Height=height;
            GrowthBehavior=growthBehavior;
            RadioButtonValue=radioButtonValue;
        }
Beispiel #6
0
		public SheetFieldDef(SheetFieldType fieldType,string fieldName,string fieldValue,
			float fontSize,string fontName,bool fontIsBold,
			int xPos,int yPos,int width,int height,
			GrowthBehaviorEnum growthBehavior,string radioButtonValue,bool isPaymentOption=false,KnownColor itemColor=KnownColor.Black,HorizontalAlignment textAlign=HorizontalAlignment.Left) 
		{
			FieldType=fieldType;
			FieldName=fieldName;
			FieldValue=fieldValue;
			FontSize=fontSize;
			FontName=fontName;
			FontIsBold=fontIsBold;
			XPos=xPos;
			YPos=yPos;
			Width=width;
			Height=height;
			GrowthBehavior=growthBehavior;
			RadioButtonValue=radioButtonValue;
			IsPaymentOption=isPaymentOption;
			ItemColor=Color.FromKnownColor(itemColor);
			TextAlign=textAlign;
		}
Beispiel #7
0
 public SheetFieldDef(SheetFieldType fieldType, string fieldName, string fieldValue,
                      float fontSize, string fontName, bool fontIsBold,
                      int xPos, int yPos, int width, int height,
                      GrowthBehaviorEnum growthBehavior, string radioButtonValue, bool isPaymentOption = false, KnownColor itemColor = KnownColor.Black, HorizontalAlignment textAlign = HorizontalAlignment.Left)
 {
     FieldType        = fieldType;
     FieldName        = fieldName;
     FieldValue       = fieldValue;
     FontSize         = fontSize;
     FontName         = fontName;
     FontIsBold       = fontIsBold;
     XPos             = xPos;
     YPos             = yPos;
     Width            = width;
     Height           = height;
     GrowthBehavior   = growthBehavior;
     RadioButtonValue = radioButtonValue;
     IsPaymentOption  = isPaymentOption;
     ItemColor        = Color.FromKnownColor(itemColor);
     TextAlign        = textAlign;
 }
Beispiel #8
0
        //public static SheetFieldDef NewStaticText(string fieldValue,float fontSize,string fontName,bool fontIsBold,
        //	int xPos,int yPos,int width,int height) {
        //	return new SheetFieldDef(SheetFieldType.StaticText,"",fieldValue,fontSize,fontName,fontIsBold,
        //		xPos,yPos,width,height,GrowthBehaviorEnum.None,"");
        //}

        ///<summary>Use named parameters if you only need to use some of the optional parameters.</summary>
        public static SheetFieldDef NewStaticText(string fieldValue, float fontSize, string fontName, bool fontIsBold,
                                                  int xPos, int yPos, int width, int height, GrowthBehaviorEnum growthBehavior = GrowthBehaviorEnum.None, bool isPaymentOption = false, KnownColor itemColor = KnownColor.Black,
                                                  HorizontalAlignment textAlign = HorizontalAlignment.Left)
        {
            return(new SheetFieldDef(SheetFieldType.StaticText, "", fieldValue, fontSize, fontName, fontIsBold,
                                     xPos, yPos, width, height, growthBehavior, "", isPaymentOption, itemColor, textAlign, isNew: true));
        }
Beispiel #9
0
 public static SheetFieldDef NewStaticText(string fieldValue, float fontSize, string fontName, bool fontIsBold,
                                           int xPos, int yPos, int width, int height, GrowthBehaviorEnum growthBehavior)
 {
     return(new SheetFieldDef(SheetFieldType.StaticText, "", fieldValue, fontSize, fontName, fontIsBold,
                              xPos, yPos, width, height, growthBehavior, ""));
 }
Beispiel #10
0
		//public static SheetFieldDef NewStaticText(string fieldValue,float fontSize,string fontName,bool fontIsBold,
		//	int xPos,int yPos,int width,int height) {
		//	return new SheetFieldDef(SheetFieldType.StaticText,"",fieldValue,fontSize,fontName,fontIsBold,
		//		xPos,yPos,width,height,GrowthBehaviorEnum.None,"");
		//}

		///<summary>Use named parameters if you only need to use some of the optional parameters.</summary>
		public static SheetFieldDef NewStaticText(string fieldValue,float fontSize,string fontName,bool fontIsBold,
			int xPos,int yPos,int width,int height,GrowthBehaviorEnum growthBehavior=GrowthBehaviorEnum.None,bool isPaymentOption=false,KnownColor itemColor=KnownColor.Black,
			HorizontalAlignment textAlign=HorizontalAlignment.Left) 
		{
			return new SheetFieldDef(SheetFieldType.StaticText,"",fieldValue,fontSize,fontName,fontIsBold,
				xPos,yPos,width,height,GrowthBehaviorEnum.None,"",isPaymentOption,itemColor,textAlign);
		}
Beispiel #11
0
		public static SheetFieldDef NewOutput(string fieldName,float fontSize,string fontName,bool fontIsBold,
			int xPos,int yPos,int width,int height,HorizontalAlignment textAlign, KnownColor itemColor=KnownColor.Black,
			GrowthBehaviorEnum growthBehavior=GrowthBehaviorEnum.None)
		{
			return new SheetFieldDef(SheetFieldType.OutputText,fieldName,"",fontSize,fontName,fontIsBold,
				xPos,yPos,width,height,growthBehavior,"",false,itemColor,textAlign);
		}
Beispiel #12
0
        public static SheetFieldDef NewStaticText(string fieldValue,float fontSize,string fontName,bool fontIsBold,
			int xPos,int yPos,int width,int height,GrowthBehaviorEnum growthBehavior)
        {
            return new SheetFieldDef(SheetFieldType.StaticText,"",fieldValue,fontSize,fontName,fontIsBold,
                xPos,yPos,width,height,growthBehavior,"");
        }