Console.BufferWidth プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

/** @property */ public static int get_BufferWidth () /** @property */ public static void set_BufferWidth (int value)
public static function get BufferWidth () : int public static function set BufferWidth (value : int)
バッファ領域の現在の幅を示す列数。


BufferHeight プロパティおよび BufferWidth プロパティの使用例を次に示します。この例では、300 行× 85 列のバッファ サイズに設定されたオペレーティング システム ウィンドウのサイズを表示します。
' This example demonstrates the Console.BufferHeight and ' Console.BufferWidth properties. Imports System Class Sample Public Shared Sub Main() Console.WriteLine("The current buffer height is {0} rows.", _ Console.BufferHeight) Console.WriteLine("The current buffer width is {0} columns.", _ Console.BufferWidth) End Sub 'Main End Class 'Sample ' 'This example produces the following results: ' 'The current buffer height is 300 rows. 'The current buffer width is 85 columns. '
// This example demonstrates the Console.BufferHeight and // Console.BufferWidth properties. using System; class Sample { public static void Main() { Console.WriteLine("The current buffer height is {0} rows.", Console.BufferHeight); Console.WriteLine("The current buffer width is {0} columns.", Console.BufferWidth); } } /* This example produces the following results: The current buffer height is 300 rows. The current buffer width is 85 columns. */
// This example demonstrates the Console.BufferHeight and // Console.BufferWidth properties. using namespace System; int main() { Console::WriteLine( "The current buffer height is {0} rows.", Console::BufferHeight ); Console::WriteLine( "The current buffer width is {0} columns.", Console::BufferWidth ); } /* This example produces the following results: The current buffer height is 300 rows. The current buffer width is 85 columns. */
// This example demonstrates the Console.BufferHeight and // Console.BufferWidth properties. import System.*; class Sample { public static void main(String[] args) { Console.WriteLine("The current buffer height is {0} rows.", System.Convert.ToString(Console.get_BufferHeight())); Console.WriteLine("The current buffer width is {0} columns.", System.Convert.ToString(Console.get_BufferWidth())); } //main } //Sample /* This example produces the following results: The current buffer height is 300 rows. The current buffer width is 85 columns. */


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からConsole.BufferWidth プロパティを検索する場合は、下記のリンクをクリックしてください。

- Console.BufferWidth プロパティのページへのリンク