• Introduction
  • Programmer's Guide
  • Technical Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • ic4
      • BufferPool
      • DeviceEnum
      • DeviceInfo
      • Display
      • DisplayNotation
      • DisplayRenderPosition
      • DisplayStatistics
      • DisplayType
      • EmbeddedDisplay
      • ErrorCode
      • ExternalOpenGLDisplay
      • FloatRepresentation
      • FloatingDisplay
      • FrameMetaData
      • Grabber
      • HandleObject
      • IBufferAllocator
      • IC4Exception
      • IDisplay
      • ImageBuffer
      • ImageBuffer.CopyOptions
      • ImageBufferExtensions
      • ImageBufferExtensionsOpenCvSharp
      • ImageType
      • IntRepresentation
      • Interface
      • Library
      • LogLevel
      • LogTarget
      • PixelFormat
      • PixelFormatExtensions
      • PngCompressionLevel
      • PropBoolean
      • PropCategory
      • PropCommand
      • PropEnumEntry
      • PropEnumeration
      • PropFloat
      • PropId
      • PropIdBoolean
      • PropIdCommand
      • PropIdEnumeration
      • PropIdFloat
      • PropIdInteger
      • PropIdRegister
      • PropIdString
      • PropInteger
      • PropRegister
      • PropString
      • Property
      • PropertyIncrementMode
      • PropertyMap
      • PropertyType
      • PropertyVisibility
      • QueueSink
      • QueueSinkConnectedEventArgs
      • QueueSinkEventArgs
      • QueueSinkQueueSizes
      • Sink
      • SinkMode
      • SinkType
      • SnapSink
      • SnapSinkAllocationStrategy
      • StreamSetupOption
      • StreamStatistics
      • TransportLayerType
      • VersionInfoFlags
      • VideoWriter
      • VideoWriterType

    Class PropEnumeration

    Enumeration properties represent a feature whose value is selected from a list of named entries.

    Inheritance
    object
    HandleObject
    Property
    PropEnumeration
    Implements
    IDisposable
    Inherited Members
    Property.Notification
    Property.Type
    Property.DisplayName
    Property.Name
    Property.Description
    Property.Tooltip
    Property.Visibility
    Property.IsLocked
    Property.IsLikelyLockedByStream
    Property.IsAvailable
    Property.IsReadonly
    Property.IsSelector
    Property.SelectedProperties
    HandleObject.Dispose(bool)
    HandleObject.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ic4
    Assembly: ic4dotnet.dll
    Syntax
    public class PropEnumeration : Property, IDisposable
    Remarks

    Common examples for an enumeration properties are PixelFormat, TriggerMode or ExposureAuto.

    The value of an enumeration property can be get or set by both a enumeration entry's name or value.

    Enumeration entries are represented by PropEnumEntry objects; the possible entries are returned by Entries.

    PropEnumeration instances are created in multiple ways:

    • By directly querying a PropertyMap for a boolean property:
      • Find(PropIdEnumeration)
      • FindEnumeration(string)
      • TryFind(PropIdEnumeration, out PropEnumeration)
      • TryFindEnumeration(string, out PropEnumeration)
    • By casting a Property object obtained from one of the functions returning generic property objects:
      • Find(string)
      • TryFind(string, out Property)
      • Features
      • All
      • SelectedProperties

    Properties

    Entries

    Enumerates the enumeration's list of entries.

    Declaration
    public IEnumerable<PropEnumEntry> Entries { get; }
    Property Value
    Type Description
    IEnumerable<PropEnumEntry>

    An enumeration of PropEnumEntry objects representing the enumeration's entries.

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    IntValue

    The integer value of the currently selected entry of this enumeration property

    Declaration
    public long IntValue { get; set; }
    Property Value
    Type Description
    long

    The integer value of the currently selected entry of this enumeration property

    SelectedEntry

    The currently selected entry of this enumeration property

    Declaration
    public PropEnumEntry SelectedEntry { get; set; }
    Property Value
    Type Description
    PropEnumEntry

    The currently selected entry of this enumeration property

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Value

    The name of the currently selected entry of this enumeration property

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    string

    The name of the currently selected entry of this enumeration property

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Methods

    FindEntry(long)

    Finds the enumeration entry with a specified value.

    Declaration
    public PropEnumEntry FindEntry(long value)
    Parameters
    Type Name Description
    long value

    The value of the enumeration entry to find

    Returns
    Type Description
    PropEnumEntry

    The PropEnumEntry with the specified value

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    FindEntry(string)

    Finds the enumeration entry with a specified name.

    Declaration
    public PropEnumEntry FindEntry(string name)
    Parameters
    Type Name Description
    string name

    The name of the enumeration entry to find

    Returns
    Type Description
    PropEnumEntry

    The PropEnumEntry with the specified name

    Exceptions
    Type Condition
    ArgumentNullException

    name is null

    IC4Exception

    Check ErrorCode and ToString() for details.

    Implements

    IDisposable
    In this article
    Copyright ©️ 2024 The Imaging Source Europe GmbH www.theimagingsource.com