FontSourceCollection
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public final class FontSourceCollection implements Iterable<FontSource>
Represents font sources collection.
Constructors
Constructor | Description |
---|---|
FontSourceCollection() | Initializes collection object |
Fields
Field | Description |
---|---|
CollectionChanged | CollectionChanged event |
Methods
Method | Description |
---|---|
size() | Gets the number of Font object elements actually contained in the collection. |
getSyncRoot() | Gets an object that can be used to synchronize access to the collection. |
isSynchronized() | Gets a value indicating whether access to the collection is synchronized (thread safe). |
iterator() | Returns an enumerator for the entire collection. |
copyTo(FontSource[] array, int index) | Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array |
add(FontSource fontSource) | Adds new font source object to the collection. |
clear() | Clears the font source collection. |
delete(FontSource fontSource) | Deletes the font source element. |
getItem(int index) | Gets the font element at the specified index. |
contains(FontSource item) | Determines whether an element is in the collection. |
remove(FontSource item) | Deletes the font source element. |
FontSourceCollection()
public FontSourceCollection()
Initializes collection object
CollectionChanged
public final PdfEvent<System.EventHandler> CollectionChanged
CollectionChanged event
size()
public int size()
Gets the number of Font object elements actually contained in the collection.
Returns: int - int value
getSyncRoot()
public Object getSyncRoot()
Gets an object that can be used to synchronize access to the collection.
Returns: java.lang.Object - Object element
isSynchronized()
public boolean isSynchronized()
Gets a value indicating whether access to the collection is synchronized (thread safe).
Returns: boolean - boolean value
iterator()
public System.Collections.IEnumerator iterator()
Returns an enumerator for the entire collection.
Returns: com.aspose.ms.System.Collections.IEnumerator - Enumerator object.
copyTo(FontSource[] array, int index)
public void copyTo(FontSource[] array, int index)
Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array
Parameters:
Parameter | Type | Description |
---|---|---|
array | FontSource[] | Array of objects which will be copied. |
index | int | Starting index from which copying will be started. |
add(FontSource fontSource)
public void add(FontSource fontSource)
Adds new font source object to the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
fontSource | FontSource | Font source. |
clear()
public void clear()
Clears the font source collection.
delete(FontSource fontSource)
public void delete(FontSource fontSource)
Deletes the font source element.
Parameters:
Parameter | Type | Description |
---|---|---|
fontSource | FontSource | FontSource object that will be deleted. |
getItem(int index)
public FontSource getItem(int index)
Gets the font element at the specified index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index within the collection. |
Returns: FontSource - Font source object.
contains(FontSource item)
public boolean contains(FontSource item)
Determines whether an element is in the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | FontSource | FontSource object to search. |
Returns: boolean - True - if element found; otherwise, false.
remove(FontSource item)
public boolean remove(FontSource item)
Deletes the font source element.
Parameters:
Parameter | Type | Description |
---|---|---|
item | FontSource | FontSource object that will be deleted. |
Returns: boolean - True - if element found; otherwise, false.