Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to write text in specific position in c#

void WriteAt(int x, int y, string MessageText)
{
	int OldCursorX = System.Console.CursorLeft;
    int OldCursorY = System.Console.CursorTop;
    System.Console.SetCursorPosition(x, y);
    System.Console.Write(MessageText);
    System.Console.SetCursorPosition(OldCursorX, OldCursorY);
}

/*
WriteAt function is works like that example:
*/
WriteAt(10, 20, "HeLLo WoRlD!!");
/*
This is will send a message in the left-position:10 and the top-position:20 and the text is: "HeLLo WoRlD!!".
*/
Comment

PREVIOUS NEXT
Code Example
Csharp :: batchblock timeout 
Csharp :: get after point in c# 
Csharp :: monegame deltatime 
Csharp :: indexof c# 
Csharp :: monogame print 
Csharp :: c# listview filter contains 
Csharp :: Options Pattern startup.cs configuration 
Csharp :: what is float in c# 
Csharp :: c# loop 2 time tables 
Csharp :: verifyusertokenasync password reset token 
Csharp :: get all properties of an object including children c# 
Csharp :: c# convert string to datetime dd-mm-yyyy hh-mm-ss 
Csharp :: how to check if a file is running in c# 
Csharp :: convert string into float C# 
Csharp :: unity collapse hierarchy script 
Csharp :: sort array dotnet 
Csharp :: wpf get name of clicked element 
Csharp :: serial begin 
Csharp :: raq query ef core 
Csharp :: cread 2-dimensional array in c# 
Csharp :: static constructor in c# 
Csharp :: c# get all occurrences of a string 
Csharp :: unity GUI TextField enter 
Csharp :: Generic Stack 
Csharp :: winforms combobox get selected text 
Csharp :: dotnet create web api 
Csharp :: value is null to insert in c# 
Csharp :: asp.net web forms 
Csharp :: c# how to return a function 
Csharp :: C3 compare hour 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =