foxit::pdf::interform::ChoiceOptionArray Class Reference

Inherits Object.

Public Member Functions

 ChoiceOptionArray ()
 Constructor.
 
 ChoiceOptionArray (const ChoiceOptionArray &)
 Constructor, with another array object.
 
 ~ ChoiceOptionArray ()
 Destructor.
 
void Add (ChoiceOption element)
 Add an element to the end of current array. More...
 
ChoiceOption GetAt (size_t index) const
 Retrieve a copy of the element at position specified by index in current array. More...
 
size_t GetSize () const
 Get the size of current array. More...
 
void InsertAt (size_t index, ChoiceOption element)
 Insert an element before the position specified by index. More...
 
ChoiceOptionArrayoperator= (const ChoiceOptionArray &other)
 Assign operator. More...
 
ChoiceOptionoperator[] (size_t index) const
 Retrieve a reference to the element at position specified by index in current array. More...
 
void RemoveAll ()
 Remove all the element from current array. More...
 
void RemoveAt (size_t index)
 Remove the element in position specified by index. More...
 

Detailed Description

This class represents an array of choice options.

Member Function Documentation

◆ Add()

void foxit::pdf::interform::ChoiceOptionArray::Add ( ChoiceOption  element)

Add an element to the end of current array.

Parameters
[in]elementNew element to be added to current array.
Returns
None.

◆ GetAt()

ChoiceOption foxit::pdf::interform::ChoiceOptionArray::GetAt ( size_t  index) const

Retrieve a copy of the element at position specified by index in current array.

Parameters
[in]indexAn index to specify which element is to be retrieved.
Returns
A copy of an element.

◆ GetSize()

size_t foxit::pdf::interform::ChoiceOptionArray::GetSize ( ) const

Get the size of current array.

Returns
The size.

◆ InsertAt()

void foxit::pdf::interform::ChoiceOptionArray::InsertAt ( size_t  index,
ChoiceOption  element 
)

Insert an element before the position specified by index.

Parameters
[in]indexAn index to specify where to insert the new element. Valid range: from 0 to (count-1). count is returned by function GetSize().
[in]elementNew element to be inserted to current array.
Returns
None.

◆ operator=()

ChoiceOptionArray& foxit::pdf::interform::ChoiceOptionArray::operator= ( const ChoiceOptionArray other)

Assign operator.

Parameters
[in]otherAnother array object, whose value will be assigned to current object.
Returns
Reference to current object itself.

◆ operator[]()

ChoiceOption& foxit::pdf::interform::ChoiceOptionArray::operator[] ( size_t  index) const

Retrieve a reference to the element at position specified by index in current array.

Parameters
[in]indexAn index to specify which element is to be retrieved.
Returns
Reference to an element.

◆ RemoveAll()

void foxit::pdf::interform::ChoiceOptionArray::RemoveAll ( )

Remove all the element from current array.

Returns
None.

◆ RemoveAt()

void foxit::pdf::interform::ChoiceOptionArray::RemoveAt ( size_t  index)

Remove the element in position specified by index.

Parameters
[in]indexAn index to specify which element is to be removed. Valid range: from 0 to (count-1). count is returned by function GetSize().
Returns
None.

Foxit Software Corporation Logo
@2018 Foxit Software Incorporated. All rights reserved.