Support.CursorToIPicture(Cursor) メソッド

定義

注意事項

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

指定したIPictureに対応する OLE Cursor オブジェクトを返します。

public:
 static System::Object ^ CursorToIPicture(System::Windows::Forms::Cursor ^ curs);
public static object CursorToIPicture(System.Windows.Forms.Cursor curs);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object CursorToIPicture(System.Windows.Forms.Cursor curs);
static member CursorToIPicture : System.Windows.Forms.Cursor -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member CursorToIPicture : System.Windows.Forms.Cursor -> obj
Public Function CursorToIPicture (curs As Cursor) As Object

パラメーター

curs
Cursor

変換する Cursor

返品

OLE Object オブジェクトを表すIPicture

属性

注釈

Visual Basic 6.0 では、フォームまたはコントロールの MouseIcon プロパティを使用して、カスタム MousePointer (カーソル) を読み込むことができます。 場合によっては、 MouseIcon のイメージが stdOle.IPictureとして格納されました。この関数は、 CursorstdOle.IPictureに変換するためにアップグレード ツールによって使用されます。

Visual Basicで Cursor を変換するには、GetIPictureFromCursor クラスの AxHost メソッドを使用します。

Note

Microsoft.VisualBasic.Compatibility.VB6 名前空間の関数とオブジェクトは、Visual Basic 6.0 から Visual Basic 2008 にアップグレードするためのツールで使用するために提供されています。 ほとんどの場合、これらの関数とオブジェクトは、.NET Framework の他の名前空間で見つけることができる機能を複製します。 これらは、Visual Basic 6.0 コード モデルが .NET Framework の実装と大きく異なる場合にのみ必要です。

適用対象