public class LightweightOperatorCollection extends BaseOperatorCollection implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Operator>
Lightweight operator collection. Intended to be used in scenarios when underlying contents stream is not attached, where just operator collection is required as a result.
| Constructor and Description |
|---|
LightweightOperatorCollection()
Initialize object
|
LightweightOperatorCollection(OperatorCollection operatorCollection)
Initialize object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Operator op)
Add operator
|
void |
cancelUpdate()
Cancels last update.
|
void |
deleteUnrestricted(int index)
internal delete Unrestrictedelement
|
Operator |
get_Item(int index)
Gets operator by its index.
|
Object |
getSyncRoot()
Return SyncRoot Object
|
Operator |
getUnrestricted(int index)
For internal usage getUnrestricted operator
|
void |
insert(int index,
Operator op)
Insert operator
|
boolean |
isFastTextExtractionMode()
Indicates wheather collection is limited to fast text extraction
|
boolean |
isSynchronized()
Return true if isSynchronized
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Operator> |
iterator()
Return iterator
|
void |
resumeUpdate()
Resumes document update.
|
void |
set_Item(int index,
Operator value)
Sets operator by its index.
|
int |
size()
Operators count
|
void |
suppressUpdate()
Suppresses update contents data.
|
com.aspose.ms.System.Collections.Generic.List<Operator> |
toList()
Returns operators list.
|
void |
updateData()
internal
|
isEmptypublic LightweightOperatorCollection()
public LightweightOperatorCollection(OperatorCollection operatorCollection)
operatorCollection - OperatorCollection objectpublic Operator get_Item(int index)
Gets operator by its index.
Example demonstrates how to get operator of page contents by index.Document doc = new Document("input.pdf"); OperatorCollection oc = doc.getPages().get_Item(1).getContents(); Operator first = oc.get_Item(1);
get_Item in class BaseOperatorCollectionindex - Index of operator. Numbering is starts from 1.public void set_Item(int index,
Operator value)
Example demonstrates how to get operator of page contents by index.Document doc = new Document("input.pdf"); OperatorCollection oc = doc.getPages().get_Item(1).getContents(); Operator first = oc.get_Item(1);
set_Item in class BaseOperatorCollectionindex - Index of operator. Numbering is starts from 1.value - Operator from requested indexpublic com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Operator> iterator()
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Operator>iterator in interface com.aspose.ms.System.Collections.IEnumerable<Operator>iterator in interface Iterable<Operator>iterator in class BaseOperatorCollectionpublic int size()
size in class BaseOperatorCollectionpublic Object getSyncRoot()
getSyncRoot in class BaseOperatorCollectionpublic boolean isSynchronized()
isSynchronized in class BaseOperatorCollectionpublic boolean isFastTextExtractionMode()
Indicates wheather collection is limited to fast text extraction
isFastTextExtractionMode in class BaseOperatorCollectionpublic void suppressUpdate()
Suppresses update contents data. The contents stream is not updated until ResumeUpdate is called.
suppressUpdate in class BaseOperatorCollectionpublic void resumeUpdate()
Resumes document update. Updates contents stream in case there are any pending changes.
resumeUpdate in class BaseOperatorCollectionpublic void insert(int index,
Operator op)
insert in class BaseOperatorCollectionindex - int valueop - Operator objectpublic void add(Operator op)
add in class BaseOperatorCollectionop - Operator objectpublic Operator getUnrestricted(int index)
getUnrestricted in class BaseOperatorCollectionindex - int valuepublic void updateData()
updateData in class BaseOperatorCollectionpublic void deleteUnrestricted(int index)
deleteUnrestricted in class BaseOperatorCollectionindex - int valuepublic void cancelUpdate()
Cancels last update. This method may be called when the change should not raise contents update.
cancelUpdate in class BaseOperatorCollectionpublic com.aspose.ms.System.Collections.Generic.List<Operator> toList()
Returns operators list.
toList in class BaseOperatorCollectionCopyright © 2016 Aspose. All Rights Reserved.