GraphicChildren ClassCognex VisionPro 9.21 SR1

Collection of child graphics.

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision ChangedEventShareableBase
      Cognex.Vision GraphicChildren

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
Syntax

public sealed class GraphicChildren : ChangedEventShareableBase, 
	IHaveFakePropertyMeta, IObject, IReadOnlyCollection, IReadOnlyList, IEnumerable<IGraphicParentChild>, 
	IEnumerable, IReadOnlyCollection, ICollection, IList<IGraphicParentChild>, 
	ICollection<IGraphicParentChild>, ICollectionEvents, IReadOnlyDictionary, IReadOnlyDictionary, 
	IEnumerable<KeyValuePair<string, IGraphicParentChild>>, IReadOnlyCollection

The GraphicChildren type exposes the following members.

Constructors

  NameDescription
Public methodGraphicChildren 

Constructs a new instance of this class.

Public methodGraphicChildren(IGraphicParentChild)

Constructs a new instance of this class using an existing parent-child graphic.

Top
Methods

  NameDescription
Public methodAdd(IGraphicParentChild)

Adds the given item to the end of this collection, with the specified key.

Public methodAdd(IGraphicParentChild, String)

Inserts the given item at the specified index, with the specified key.

Public methodAddRange
Adds the elements of the specified collection to the end of the collection.
Public methodClear

Remove all items from this collection.

Public methodContains(KeyValuePair String, IGraphicParentChild )

Determines whether this dictionary contains the specified key.

Public methodContains(IGraphicParentChild)

Determine whether an item is in this collection.

Public methodContainsKey

Determines whether this dictionary contains the specified key.

Public methodCopyTo( KeyValuePair String, IGraphicParentChild  , Int32)
Public methodCopyTo( IGraphicParentChild , Int32)
Copies all the elements of the collection to the specified one-dimensional array starting at the specified destination array index. The index is specified as a 32-bit integer.
Public methodEquals
Compares the equality of this object with another.
(Overrides ChangedEventShareableBase Equals(Object).)
Public methodGetEnumerator
Returns an IEnumerator for the collection.
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ChangedEventShareableBase GetHashCode .)
Public methodGetItem
Get the item at the specified index.
Public methodGetItemByKey
Get the item at the specified index.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodIndexOf

Find the first item in this collection that matches the supplied item, and return its index.

Public methodIndexOfKey

Gets the index of the item with the specified key. If the key cannot be found -1 is returned.

Public methodInsert(Int32, IGraphicParentChild)

Inserts the given item at the specified index, with the specified key.

Public methodInsert(Int32, IGraphicParentChild, String)

Add an item to the end of this collection.

Public methodKey

Get the key at the specified index.

Public methodMove

Move the selected item to a new index in this collection.

Public methodRemove

Remove the item with the specified key from this dictionary.

Public methodRemoveAt

Remove the item at the specified index.

Public methodResumeAndRaiseChangedEvent

Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase ResumeAndRaiseChangedEvent .)
Public methodsetItem(Int32, IGraphicParentChild)

Replace the element at the specified index.

Public methodsetItem(String, IGraphicParentChild)

Replace the element with the specified key. If the key is not a member of this dictionary, insert the key/value pair.

Public methodSetKey

Sets the key of the item at the specified index.

Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Public methodTryGetByIndex

Get the key and value associated with the specified index.

Public methodTryGetValue

Get the item associated with the specified key.

Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two GraphicChildren objects.
Public operatorStatic memberInequality
Compares the inequality of two GraphicChildren objects.
Top
Fields

  NameDescription
Public fieldStatic memberSfCount
Public fieldStatic memberSfItem
Top
Properties

  NameDescription
Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides ChangedEventShareableBase ChangedEventSuspended.)
Public propertyCount

Get the number of elements contained in this collection.

Public propertyHandle (Overrides ChangedEventShareableBase Handle.)
Public propertyIsReadOnly

Get whether or not this collection is read-only.

Public propertyItem Int32 
Public propertyItem String 
Public propertyKeys
Public propertyValues
Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides ChangedEventShareableBase Changed.)
Public eventCleared

Raised after the collection is cleared.

Public eventClearing

Raised before the collection is cleared.

Public eventInsertedItem

Raised after an item is inserted.

Public eventInsertingItem

Raised before an item is inserted.

Public eventMovedItem

Raised after an item is moved to a new index.

Public eventMovingItem

Raised before an item is moved to a new index.

Public eventRemovedItem

Raised after an item is removed.

Public eventRemovingItem

Raised before an item is removed.

Public eventReplacedItem

Raised after an item is replaced.

Public eventReplacingItem

Raised before an item is replaced.

Top
Remarks

Class representing a collection of child graphics.

See Also