Console.BufferWidth プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Console.BufferWidth プロパティの意味・解説 

Console.BufferWidth プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

バッファ領域の幅を取得または設定します

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Property BufferWidth
 As Integer
Dim value As Integer

value = Console.BufferWidth

Console.BufferWidth = value
public static int BufferWidth
 { get; set; }
/** @property */
public static int get_BufferWidth
 ()

/** @property */
public static void set_BufferWidth
 (int value)

プロパティ
バッファ領域現在の幅を示す列数。

例外例外
例外種類条件

ArgumentOutOfRangeException

設定操作として指定した値が 0 以下です。

または

設定操作として指定した値が Int16.MaxValue 以上です。

または

設定操作指定された値が、WindowLeft と WindowWidth を足した未満です。

SecurityException

ユーザーに、この操作実行するためのアクセス許可がありません。

IOException

I/O エラー発生しました

使用例使用例

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.
*/
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からConsole.BufferWidth プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からConsole.BufferWidth プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からConsole.BufferWidth プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Console.BufferWidth プロパティ」の関連用語

Console.BufferWidth プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Console.BufferWidth プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS