[]
Represents the ComboBox field.
public class ComboBoxField : ChoiceField, IPdfDict, IOwnedObject, ActionHide.ILinkedObject, ActionFieldsBase.IFieldDef
Initializes a new instance of the ComboBoxField class.
public ComboBoxField()
Gets or sets the default value of this ComboBoxField as a string. This property is used to specify the default value of the ComboBoxField if its Editable property is true.
public string DefaultText { get; set; }
Gets or sets the default value of ComboBoxField, value is specified as index of selected item.
public int DefaultValue { get; set; }
Gets or sets a value indicating whether the combo box includes an editable text box as well as a drop-down list.
public bool Editable { get; set; }
Gets or sets the value of this ComboBoxField as a string. This property is used to specify the value of the ComboBoxField if its Editable property is true.
public string Text { get; set; }
Gets or sets the value of ComboBoxField, value is specified as index of selected item.
public int Value { get; set; }
Imposes the specified date format string on the current ComboBoxField.
The syntax of the format string is similar to .NET format strings. Some examples are "m/d/yyyy" or "d-mmm-yy".
Note that this method initializes the values of Field.Events.FormatValue and Field.Events.KeyPress only, it does not change the field's value or widget appearance streams.
public void SetDateFormat(string format)
format stringThe format string. Cannot be null or empty.
Imposes the specified date format string on the current ComboBoxField, and assigns to it the specified value as a date.
The syntax of the format string is similar to .NET format strings. Some examples are "m/d/yyyy" or "d-mmm-yy".
public void SetDateValue(DateTime value, string format)
value System.DateTimeThe value to assign.
format stringThe format string. Cannot be null or empty.
Imposes the specified numeric formatting options on the current ComboBoxField.
Note that this method initializes the values of Field.Events.FormatValue and Field.Events.KeyPress only, it does not change the field's value or widget appearance streams.
public void SetNumberFormat(int decimalPlaces, Field.NumberSeparatorStyle separatorStyle, Field.NumberNegativeStyle negativeStyle, string currencySymbol, Field.CurrencySymbolStyle currencySymbolStyle)
decimalPlaces intThe number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.
separatorStyle Field.NumberSeparatorStyleThe placement of commas and periods, see Field.NumberSeparatorStyle.
negativeStyle Field.NumberNegativeStyleHow negative numbers are displayed.
currencySymbol stringThe currency symbol, or null or empty string.
currencySymbolStyle Field.CurrencySymbolStyleThe location of the currency symbol in relation to the number.
This parameter is meaningful only if currencySymbol is not null or empty.
Imposes the specified numeric formatting options on the current ComboBoxField, and assigns to it the specified value as a number.
public void SetNumberValue(double value, int decimalPlaces, Field.NumberSeparatorStyle separatorStyle, Field.NumberNegativeStyle negativeStyle, string currencySymbol, Field.CurrencySymbolStyle currencySymbolStyle)
value doubleThe value to assign.
decimalPlaces intThe number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.
separatorStyle Field.NumberSeparatorStyleThe placement of commas and periods, see Field.NumberSeparatorStyle.
negativeStyle Field.NumberNegativeStyleHow negative numbers are displayed.
currencySymbol stringThe currency symbol, or null or empty string.
currencySymbolStyle Field.CurrencySymbolStyleThe location of the currency symbol in relation to the number.
This parameter is meaningful only if currencySymbol is not null or empty.
Imposes the specified percentage formatting options on the current ComboBoxField.
Note that this method initializes the values of Field.Events.FormatValue and Field.Events.KeyPress only, it does not change the field's value or widget appearance streams.
public void SetPercentFormat(int decimalPlaces, Field.NumberSeparatorStyle separatorStyle)
decimalPlaces intThe number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.
separatorStyle Field.NumberSeparatorStyleThe placement of commas and periods, see Field.NumberSeparatorStyle.
Imposes the specified percentage formatting options on the current ComboBoxField, and assigns to it the specified value as percentage.
public void SetPercentValue(double value, int decimalPlaces, Field.NumberSeparatorStyle separatorStyle)
value doubleThe percentage value to assign. For example, 1 corresponds to 100%, 0.5 to 50%, and so on.
decimalPlaces intThe number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.
separatorStyle Field.NumberSeparatorStyleThe placement of commas and periods.
Imposes the specified special format on the current ComboBoxField.
Note that this method initializes the values of Field.Events.FormatValue and Field.Events.KeyPress only, it does not change the field's value or widget appearance streams.
public void SetSpecialFormat(Field.SpecialFormat specialFormat)
specialFormat Field.SpecialFormatThe special format to use.
Sets the value of the current ComboBoxField as a value
formatted according to format.
This method assumes that value is already formatted as required.
E.g. if format is SSN, value should look like "123-45-6789".
public void SetSpecialFormatValue(string value, Field.SpecialFormat format)
value stringThe value to assign.
format Field.SpecialFormatThe special format to use.
Imposes the specified time format string on the current ComboBoxField.
The syntax of the format string is similar to .NET format strings. Some examples are "HH:MM" or "H:MM tt".
Note that this method initializes the values of Field.Events.FormatValue and Field.Events.KeyPress only, it does not change the field's value or widget appearance streams.
public void SetTimeFormat(string format)
format stringThe format string. Cannot be null or empty.
Imposes the specified time format string on the current ComboBoxField, and assigns to it the specified value as time.
The syntax of the format string is similar to .NET format strings. Some examples are "HH:MM" or "H:MM tt".
public void SetTimeValue(DateTime value, string format)
value System.DateTimeThe value to assign.
format stringThe format string. Cannot be null or empty.