C#-এ Console.MoveBufferArea() মেথডটি স্ক্রিন বাফারের একটি নির্দিষ্ট সোর্স এলিয়াকে অন্য একটি ডেস্টিনেশন এলিয়ায় কপি/মুভ করতে ব্যবহৃত হয়।
সিনট্যাক্স
public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop);
- sourceLeft - সোর্স এলিয়ার বামমোস্ট কলাম
- sourceTop - সোর্স এলিয়ার উপরমোস্ট সারি
- sourceWidth - সোর্স এলিয়ার কলাম সংখ্যা
- sourceHeight - সোর্স এলিয়ার সারি সংখ্যা
- targetLeft - ডেস্টিনেশন এলিয়ার বামমোস্ট কলাম
- targetTop - ডেস্টিনেশন এলিয়ার উপরমোস্ট সারি
উদাহরণ
using System;
class Demo {
public static void Main (string[] args) {
Console.WriteLine("Demo text!");
Console.MoveBufferArea(0, 0, Console.BufferWidth, Console.BufferHeight, 20, 20);
}
}
আউটপুট
আউটপুট একটি ইমেজ হিসেবে প্রদর্শিত হয়েছে, যেখানে টেক্সট (20,20) পজিশনে মুভ করা হয়েছে।
