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)); }
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 = ""; }
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); }
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; }
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; }
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; }
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; }
//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)); }
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, "")); }
//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); }
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); }
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,""); }