Class DocumentProviderCollection
Contains a collection of DocumentProviders.
Inheritance
object
DocumentProviderCollection
Namespace: ABB.Robotics.RobotStudio.Documents
Assembly: ABB.Robotics.RobotStudio.Documents.dll
Syntax
public sealed class DocumentProviderCollection
Constructors
View SourceDocumentProviderCollection()
Declaration
public DocumentProviderCollection()
Properties
View SourceCount
Gets the number of providers contained in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsReadOnly
Gets a value indicating whether the collection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
this[string]
Returns the provider with the specified Id.
Declaration
public DocumentProvider this[string id] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | id |
Property Value
| Type | Description |
|---|---|
| DocumentProvider |
Methods
View SourceAdd(DocumentProvider)
Adds a provider to the collection.
Declaration
public void Add(DocumentProvider item)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentProvider | item |
Clear()
Removes all providers from the collection.
Declaration
public void Clear()
Clear(bool)
Removes all providers from the collection.
Declaration
public void Clear(bool saveCache)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | saveCache | True if the providers should save their document cache. |
Contains(DocumentProvider)
Determines whether the collection contains the specified provider.
Declaration
public bool Contains(DocumentProvider item)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentProvider | item |
Returns
| Type | Description |
|---|---|
| bool |
Contains(string)
Determines whether the collection contains a provider with the specified Id.
Declaration
public bool Contains(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id |
Returns
| Type | Description |
|---|---|
| bool |
CopyTo(DocumentProvider[], int)
Overloaded
Declaration
public void CopyTo(DocumentProvider[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentProvider[] | array | |
| int | arrayIndex |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<DocumentProvider> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<DocumentProvider> |
Remove(DocumentProvider)
Removes a provider from the collection.
Declaration
public bool Remove(DocumentProvider item)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentProvider | item |
Returns
| Type | Description |
|---|---|
| bool |
Remove(string)
Removes the provider with the specified Id from the collection.
Declaration
public bool Remove(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id |
Returns
| Type | Description |
|---|---|
| bool |