• 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 PropBoolean

    Boolean properties represent a feature whose value is a simple on/off switch.

    Inheritance
    object
    HandleObject
    Property
    PropBoolean
    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 PropBoolean : Property, IDisposable
    Remarks

    PropBoolean instances are created in multiple ways:

    • By directly querying a PropertyMap for a boolean property:
      • Find(PropIdBoolean)
      • FindBoolean(string)
      • TryFind(PropIdBoolean, out PropBoolean)
      • TryFindBoolean(string, out PropBoolean)
    • 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

    Value

    The current value of this property

    The value is only writable is the property's writability is not restricted. See IsLocked, IsReadonly, IsAvailable.

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

    The current value of this property

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Methods

    TryGetValue(out bool)

    Tries to get the value of this property without throwing an exception in case of an error.

    Declaration
    public bool TryGetValue(out bool val)
    Parameters
    Type Name Description
    bool val

    Output parameter receiving the current value of the property

    Returns
    Type Description
    bool

    true, if the property value was read successfully, otherwise false

    TrySetValue(bool)

    Tries to set the value of this property without throwing an exception in case of an error.

    Declaration
    public bool TrySetValue(bool val)
    Parameters
    Type Name Description
    bool val

    The new value to set

    Returns
    Type Description
    bool

    true, if the property value was set successfully, otherwise false

    Implements

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