VideoPlayer.FullscreenMonitorPositionGet method |
|
Remarks
Obtains the screen coordinates of the given monitor as assigned by the system.
For details about full screen management refer to the How to render video clips in full screen tutorial.
For further details about the use of the embedded video player see the VideoPlayer class section.
For details about video clips rendering refer to the How to play video files through DirectShow tutorial.
Syntax
[Visual Basic] Public Function FullscreenMonitorPositionGet ( nMonitorIndex as Int32, ByRef nLeft as Int32, ByRef nTop as Int32, ByRef nWidth as Int32, ByRef nHeight as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes FullscreenMonitorPositionGet ( Int32 nMonitorIndex, ref Int32 nLeft, ref Int32 nTop, ref Int32 nWidth, ref Int32 nHeight ); |
[C++] public: enumErrorCodes FullscreenMonitorPositionGet ( Int32 nMonitorIndex, Int32 __gc *nLeft, Int32 __gc *nTop, Int32 __gc *nWidth, Int32 __gc *nHeight ); |
Parameter |
Description |
|
|
nMonitorIndex |
Number representing the zero-based index of the monitor. The total number of installed monitors can be obtained using the VideoPlayer.FullscreenMonitorCountGet method. |
nLeft |
Reference that, on return from the method call, will contain the left position of the monitor expressed in screen coordinates (pixels) |
nTop |
Reference that, on return from the method call, will contain the top position of the monitor expressed in screen coordinates (pixels) |
nWidth |
Reference that, on return from the method call, will contain the width of the monitor expressed in pixels |
nHeight |
Reference that, on return from the method call, will contain the height of the monitor expressed in pixels |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |