Gorgon
Show / Hide Table of Contents

Class GorgonVideoAdapterOutputList

A list of outputs on a video adapter.

Inheritance
object
GorgonVideoAdapterOutputList
Implements
IGorgonNamedObjectReadOnlyDictionary<IGorgonVideoOutputInfo>
IReadOnlyCollection<IGorgonVideoOutputInfo>
IEnumerable<IGorgonVideoOutputInfo>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonVideoAdapterOutputList : IGorgonNamedObjectReadOnlyDictionary<IGorgonVideoOutputInfo>, IReadOnlyCollection<IGorgonVideoOutputInfo>, IEnumerable<IGorgonVideoOutputInfo>, IEnumerable

Properties

| Edit this page View Source

Count

Gets the number of elements in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

The number of elements in the collection.

| Edit this page View Source

this[string]

Property to return an item in the dictionary by its name.

Declaration
public IGorgonVideoOutputInfo this[string name] { get; }
Parameters
Type Name Description
string name
Property Value
Type Description
IGorgonVideoOutputInfo
| Edit this page View Source

KeysAreCaseSensitive

Property to return whether the keys are case sensitive.

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

Methods

| Edit this page View Source

Contains(string)

Function to return whether an item with the specified name exists in this collection.

Declaration
public bool Contains(string name)
Parameters
Type Name Description
string name

Name of the item to find.

Returns
Type Description
bool

trueif found, false if not.

| Edit this page View Source

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<IGorgonVideoOutputInfo> GetEnumerator()
Returns
Type Description
IEnumerator<IGorgonVideoOutputInfo>

An enumerator that can be used to iterate through the collection.

| Edit this page View Source

GetOutputFromWindowHandle(nint)

Function to return the correct output where the majority of a window resides.

Declaration
public IGorgonVideoOutputInfo GetOutputFromWindowHandle(nint windowHandle)
Parameters
Type Name Description
nint windowHandle

The handle to the window to locate.

Returns
Type Description
IGorgonVideoOutputInfo

A IGorgonVideoOutputInfo that contains the majority of the window, or null if no output could be determined.

| Edit this page View Source

TryGetValue(string, out IGorgonVideoOutputInfo)

Function to return an item from the collection.

Declaration
public bool TryGetValue(string name, out IGorgonVideoOutputInfo value)
Parameters
Type Name Description
string name

The name of the item to look up.

IGorgonVideoOutputInfo value

The item, if found, or the default value for the type if not.

Returns
Type Description
bool

true if the item was found, false if not.

Implements

IGorgonNamedObjectReadOnlyDictionary<T>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonTreeLinqExtensions.TraverseDepthFirst<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
GorgonTreeLinqExtensions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author