Skip to main content

AutoRadioButton

Version: 12.0

cete.dynamicpdf.pageelements.forms.autoradiobutton

AutoRadioButton​

Represents the radio button field of a interactive forms. Radio buttons are a set of related toggles, at most one of which may be on at any given time; selecting any one of the buttons automatically deselects all the others.

public class AutoRadioButton : RadioButton, ISerializable
Public Class AutoRadioButton
Inherits RadioButton
Implements ISerializable

Inheritance: Object → PageElement → TaggablePageElement → FormElement → RadioButton → AutoRadioButton

Implements: ISerializable

Licensing Info​

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Remarks​

For more details on radio button fields take a look at the Interactive Forms topic.

Properties​

BackgroundColor​

Gets or Sets the fill/background color of a form field. (Inherited from FormElement)

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

Property Value​

RgbColor

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

BorderColor​

Gets or Sets the border color of a form field. (Inherited from FormElement)

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

Property Value​

DeviceColor

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

BorderStyle​

Gets or Sets the BorderStyle . (Inherited from FormElement)

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

Property Value​

BorderStyle

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

DefaultChecked​

Gets or Sets the radio button default checked state. (Inherited from RadioButton)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ExportValue​

Gets or Sets the export value. To create a set of mutually exclusive radio buttons (i.e., where only one can be selected at a time), give the fields the same name but different export values. (Inherited from RadioButton)

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

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Height​

Gets or Sets the height of a form field. (Inherited from FormElement)

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

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ID​

Gets or sets the ID of the page element. (Inherited from PageElement)

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

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

IgnoreMargins​

Gets or sets ignore margin property. Setting false will consider the margin while placing the page element based on the RelativeTo property. (Inherited from PageElement)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples​

The following example will place the Label in the top-left of the page with IgnoreMargin

using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();

// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page); // Create an Label and place it in page top left with margin ignored
Label label = new Label("I am placed in Page top left with margin ignored", 0, 0, 160, 30);
label.RelativeTo = RelativeTo.TopLeft;
label.IgnoreMargin=true; page.Elements.Add(label);

// Save the PDF
document.Draw(outputPath);
}
}

Label​

Gets or Sets the Label for the field.

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

Property Value​

Label

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

LabelOffset​

Gets or Sets the Offset of the label for the field.

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

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

MappingName​

Gets or Sets an mapping name, of a form field. (Inherited from FormElement)

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

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Name​

Gets or Sets the name of a form field. (Inherited from FormElement)

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

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

NoExport​

Gets or Sets the export state for the field. If set, the field will not be exported by a submit-form action. (Inherited from RadioButton)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Output​

Gets or sets output options for the field. (Inherited from FormElement)

public FormFieldOutput Output { get; set; }
Public Property Output As FormFieldOutput

Property Value​

FormFieldOutput

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Printable​

Gets or Sets the form field printable on Pdf. By default its true. (Inherited from FormElement)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

RadiosInUnison​

Gets or Sets the radio button's unison state. Buttons with the same name and value are selected in unison. (Inherited from RadioButton)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ReaderEvents​

Gets the reader events of the annotation. (Inherited from FormElement)

public AnnotationReaderEvents ReaderEvents { get; }
Public Property ReaderEvents As AnnotationReaderEvents

Property Value​

AnnotationReaderEvents

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ReadOnly​

Gets or Sets the read only property status of the form field. (Inherited from FormElement)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

RelativeTo​

Gets and sets placement of the page element on the page. (Inherited from PageElement)

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

Property Value​

RelativeTo

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples​

The following example will place the Label in the top-left of the page.

using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();

// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page); // Create an Label and place it in page top left with margin
Label label = new Label("I am placed in Page top left with margin.", 0, 0, 160, 30);
label.RelativeTo = RelativeTo.TopLeft;
page.Elements.Add(label);

// Save the PDF
document.Draw(outputPath);
}
}

Required​

Gets or Sets the required state for the field. If set, the field must have a value at the time it is exported by a submit-form action. (Inherited from RadioButton)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Rotate​

Gets or Sets the angle of a form field. Rotation angle should be multiple of 90, default is 0. (Inherited from FormElement)

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

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Symbol​

Gets or Sets the type of �check� to appear in the checkbox. (Inherited from RadioButton)

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

Property Value​

Symbol

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Tag​

Gets or sets the structure element of the form element. (Inherited from FormElement)

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

Property Value​

Tag

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

TagOrder​

Gets or sets the tag order of the taggable element. (Inherited from TaggablePageElement)

public int TagOrder { get; set; }
Public Property TagOrder As Int32

Property Value​

Int32

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

TextColor​

Gets or Sets the color of the text for the field. (Inherited from FormElement)

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

Property Value​

DeviceColor

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToolTip​

Gets or Sets an alternate field name, of a form field. (Inherited from FormElement)

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

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Visible​

Gets or Sets the form field visible on Pdf. By default its true. (Inherited from FormElement)

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

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Width​

Gets or Sets the width of a form field. (Inherited from FormElement)

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

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

X​

Gets or Sets the X coordinate of a form field. (Inherited from FormElement)

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

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Y​

Gets or Sets the Y coordinate of a form field. (Inherited from FormElement)

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

Property Value​

Single

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

Draw(PageWriter)​

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

Parameters​

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

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.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

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 .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

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.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

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 .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.PageElements.Forms