Rectangle.FromLTRB メソッド
アセンブリ: System.Drawing (system.drawing.dll 内)

Public Shared Function FromLTRB ( _ left As Integer, _ top As Integer, _ right As Integer, _ bottom As Integer _ ) As Rectangle
Dim left As Integer Dim top As Integer Dim right As Integer Dim bottom As Integer Dim returnValue As Rectangle returnValue = Rectangle.FromLTRB(left, top, right, bottom)
戻り値
このメソッドが作成する新しい Rectangle オブジェクト。


FromLTRB メソッドを使用して四角形を作成する方法を次のコード例に示します。この例は、Windows フォームでの使用を意図してデザインされています。このコードをフォームに貼り付け、フォームの Paint イベントを処理するときに PaintEventArgs の e を渡して CreateARectangleFromLTRB メソッドを呼び出します。
Private Sub CreateARectangleFromLTRB(ByVal e As PaintEventArgs) Dim myRectangle As Rectangle = Rectangle.FromLTRB(40, 40, 140, 240) e.Graphics.DrawRectangle(SystemPens.ControlText, myRectangle) End Sub

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に収録されているすべての辞書からRectangle.FromLTRB メソッドを検索する場合は、下記のリンクをクリックしてください。

- Rectangle.FromLTRB メソッドのページへのリンク