- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
C# Console.WindowTop Property
The WindowsTop property is used to gets or set the top position of the console window area relative to the screen buffer.
Declare an integer variable to get the top position.
int top;
Now, use the Console.WindowTop property.
top = Console.WindowTop;
Let us see the complete example.
Example
using System; class Demo { static void Main() { int top; top = Console.WindowTop; Console.WriteLine("Top position of the Console window = "+top); } }
Output
Top position of the Console window = 0
Advertisements