Gdk.Screen.NMonitors Property
Documentation for this section has not yet been entered.

Syntax

public int NMonitors { get; }

Value

a int

Remarks

Returns an int of the number of monitors attached to the current Gdk.Screen.

The following example will print the number of monitors in the current display to the console.

C# Example

Display theDisplay = Display.OpenDefaultLibgtkOnly();
Screen defaultScreen = theDisplay.DefaultScreen;
int numMonitors = defaultScreen.NMonitors;
Console.WriteLine("You have {0} monitors.",numMonitors);

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)