Search Results for

    Show / Hide Table of Contents

    Class EntitySelection

    Provides a container for entity selections capable of undo/redo operations and notification of changes.

    Inheritance
    System.Object
    EntitySelection
    Implements
    System.Collections.Specialized.INotifyCollectionChanged
    System.Collections.Generic.IEnumerable<IPersistEntity>
    System.Collections.IEnumerable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Xbim.Presentation
    Assembly: Xbim.Common.dll
    Syntax
    public class EntitySelection : INotifyCollectionChanged, IEnumerable<IPersistEntity>, IEnumerable

    Constructors

    | Improve this Doc View Source

    EntitySelection(Boolean)

    Initialises an empty selection;

    Declaration
    public EntitySelection(bool keepLogging = false)
    Parameters
    Type Name Description
    System.Boolean keepLogging

    Set to True to enable activity logging for undo/redo operations.

    Methods

    | Improve this Doc View Source

    Add(IEnumerable<IPersistEntity>)

    Declaration
    public void Add(IEnumerable<IPersistEntity> entity)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IPersistEntity> entity
    | Improve this Doc View Source

    Add(IPersistEntity)

    Declaration
    public void Add(IPersistEntity entity)
    Parameters
    Type Name Description
    IPersistEntity entity
    | Improve this Doc View Source

    AddRange(IEnumerable<IPersistEntity>)

    Declaration
    public IEnumerable<IPersistEntity> AddRange(IEnumerable<IPersistEntity> entities)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IPersistEntity> entities
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IPersistEntity>
    | Improve this Doc View Source

    Clear()

    Declaration
    public void Clear()
    | Improve this Doc View Source

    GetEnumerator()

    Declaration
    public IEnumerator<IPersistEntity> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<IPersistEntity>
    | Improve this Doc View Source

    Redo()

    Declaration
    public void Redo()
    | Improve this Doc View Source

    Remove(IEnumerable<IPersistEntity>)

    Declaration
    public void Remove(IEnumerable<IPersistEntity> entity)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IPersistEntity> entity
    | Improve this Doc View Source

    Remove(IPersistEntity)

    Declaration
    public void Remove(IPersistEntity entity)
    Parameters
    Type Name Description
    IPersistEntity entity
    | Improve this Doc View Source

    SetRange(IEnumerable<IPersistEntity>)

    Declaration
    public IEnumerable<IPersistEntity> SetRange(IEnumerable<IPersistEntity> entities)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IPersistEntity> entities
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IPersistEntity>
    | Improve this Doc View Source

    Toggle(IPersistEntity)

    Toggles the selection state of an IPersistEntity

    Declaration
    public bool Toggle(IPersistEntity item)
    Parameters
    Type Name Description
    IPersistEntity item

    the IPersistEntity to add or remove from the selection

    Returns
    Type Description
    System.Boolean

    true if added; false if removed

    | Improve this Doc View Source

    Undo()

    Declaration
    public void Undo()

    Events

    | Improve this Doc View Source

    CollectionChanged

    Declaration
    public event NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedEventHandler

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.Specialized.INotifyCollectionChanged
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Extension Methods

    IEnumerableExtensions.AsTriplet<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim