Class OTZFileUtils
ファイル関連の機能を提供します。
Inheritance
System.Object
OTZFileUtils
名前空間: OTZControls.Utilities
アセンブリ: OTZControls.dll
Syntax
public class OTZFileUtils
コンストラクタ
OTZFileUtils()
コンストラクタ
宣言
public OTZFileUtils()
プロパティ
MenuFont
メニューのフォントを取得します。
宣言
public static Font MenuFont { get; }
プロパティ値
型 | 説明 |
---|---|
System.Drawing.Font |
メソッド
HasBom(String, Encoding)
BOM があるか判断します。
宣言
public static bool HasBom(string filePath, Encoding e)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.String | filePath | ファイルパス |
System.Text.Encoding | e | エンコーディング |
戻り値
型 | 説明 |
---|---|
System.Boolean |
IsOpen(String)
ファイルがオープン可能かどうか判断します。
宣言
public static bool IsOpen(string path)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.String | path | ファイルパス |
戻り値
型 | 説明 |
---|---|
System.Boolean | true: ファイルオープンしている場合。false: ファイルオープンしていない場合。 |