Skip to main content

ComboBoxField

Version: 6.0

cete.dynamicpdf.forms.comboboxfield

ComboBoxField​

Base class representing a combo box field.

public abstract class ComboBoxField : ChoiceField
Public MustInherit Class ComboBoxField
Inherits ChoiceField

Inheritance: Object → Resource → FormField → ChoiceField → ComboBoxField

Licensing​

Reading the values or properties of a field is a DynamicPDF Merger Standard Edition feature (for modifying field values see below). One of the following licenses is required for non-evaluation usage:

  • DynamicPDF Merger for .NET Standard Edition
  • DynamicPDF Merger for .NET Professional Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Professional Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Modiying the values of the fields (i.e. form filling) is a Professional Edition Feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF Merger for .NET Professional Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Professional Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Constructors​

ComboBoxField(String, FormFieldFlags)​

Initializes a new instance of the ComboBoxField class.

public ComboBoxField(string name, FormFieldFlags flags)
Public Sub New (name As String, flags As FormFieldFlags)

Parameters​

Name of the combo box field.

The flags for the combo box field.

Properties​

AlternateName​

Gets or sets the alternate name of the form field. (Inherited from FormField)

public string AlternateName { get; set; }
Public Property AlternateName As String

Property Value​

String

BackgroundColor​

Gets the background color of a form field. (Inherited from FormField)

public RgbColor BackgroundColor { get; }
Public Property BackgroundColor As RgbColor

Property Value​

RgbColor

BorderColor​

Gets the border color of a form field. (Inherited from FormField)

public DeviceColor BorderColor { get; }
Public Property BorderColor As DeviceColor

Property Value​

DeviceColor

BorderStyle​

Gets the BorderStyle . (Inherited from FormField)

public BorderStyle BorderStyle { get; }
Public Property BorderStyle As BorderStyle

Property Value​

BorderStyle

ChildFields​

Gets a collection of child form fields. (Inherited from FormField)

public FormFieldList ChildFields { get; }
Public Property ChildFields As FormFieldList

Property Value​

FormFieldList

Default​

Gets the Default values of the Choice field. (Inherited from ChoiceField)

public abstract string Default { get; }
Public MustOverride Property Default As String

Property Value​

String

Flags​

Gets flag status of a form field. (Inherited from FormField)

public FormFieldFlags Flags { get; }
Public Property Flags As FormFieldFlags

Property Value​

FormFieldFlags

Font​

Gets or Sets the font for the field. (Inherited from FormField)

public Font Font { get; set; }
Public Property Font As Font

Property Value​

Font

FontSize​

Gets or Sets the fontsize for the field. (Inherited from FormField)

public float FontSize { get; set; }
Public Property FontSize As Single

Property Value​

Single

Form​

Gets the form containing this form field. (Inherited from FormField)

public Form Form { get; }
Public Property Form As Form

Property Value​

Form

FullName​

Gets the full name of the form field. (Inherited from FormField)

public string FullName { get; }
Public Property FullName As String

Property Value​

String

HasChildFields​

Gets a value indicating if there are child form fields. (Inherited from FormField)

public bool HasChildFields { get; }
Public Property HasChildFields As Boolean

Property Value​

Boolean

HasValue​

Specifies if the form field has a value.

public bool HasValue { get; }
Public Property HasValue As Boolean

Property Value​

Boolean

InheritsName​

Gets a value indicating if the form field inherits its name. (Inherited from FormField)

public bool InheritsName { get; }
Public Property InheritsName As Boolean

Property Value​

Boolean

InheritsValue​

Gets a value indicating if the form field inherits its value. (Inherited from FormField)

public bool InheritsValue { get; }
Public Property InheritsValue As Boolean

Property Value​

Boolean

IsReadOnly​

Gets or sets a value indicating if the form field is read only. (Inherited from FormField)

public bool IsReadOnly { get; set; }
Public Property IsReadOnly As Boolean

Property Value​

Boolean

MappingName​

Gets or sets the mapping name of the form field. (Inherited from FormField)

public string MappingName { get; set; }
Public Property MappingName As String

Property Value​

String

Name​

Gets or sets the name of the form field. (Inherited from FormField)

public string Name { get; set; }
Public Property Name As String

Property Value​

String

Parent​

Gets the parent form field. (Inherited from FormField)

public FormField Parent { get; }
Public Property Parent As FormField

Property Value​

FormField

RequiredPdfObjects​

Gets the number of PDF objects required by the form field. (Inherited from FormField)

public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32

Property Value​

Int32

ResourceType​

Gets the resource type. (Inherited from FormField)

public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType

Property Value​

ResourceType

Rotate​

Gets the angle of a form field. (Inherited from FormField)

public int Rotate { get; }
Public Property Rotate As Int32

Property Value​

Int32

TextColor​

Gets the color of the text for the field. (Inherited from FormField)

public DeviceColor TextColor { get; }
Public Property TextColor As DeviceColor

Property Value​

DeviceColor

Uid​

Gets the unique ID of the resource. (Inherited from Resource)

public long Uid { get; }
Public Property Uid As Int64

Property Value​

Int64

UseSubstituteFont​

Gets or Sets whether to use SubstituteFont if the Font assigned is not found. (Inherited from FormField)

public bool UseSubstituteFont { get; set; }
Public Property UseSubstituteFont As Boolean

Property Value​

Boolean

Value​

Gets or sets the value of the form field. (Inherited from FormField)

public string Value { get; set; }
Public Property Value As String

Property Value​

String

Methods​

Draw(DocumentWriter)​

Draws the form field to the given DocumentWriter object. (Inherited from FormField)

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

DocumentWriter object to receive the form field's output.

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF.Forms