次の方法で共有


ContextLinkCollection.Contains メソッド

ContextLinkCollection に特定の ContextLink オブジェクトが格納されているかどうかを示します。

名前空間 :  System.Windows.Ink
アセンブリ :  IAWinFX (IAWinFX.dll 内)

構文

'宣言
Public Function Contains ( _
    link As ContextLink _
) As Boolean
'使用
Dim instance As ContextLinkCollection
Dim link As ContextLink
Dim returnValue As Boolean

returnValue = instance.Contains(link)
public bool Contains(
    ContextLink link
)
public:
bool Contains(
    ContextLink^ link
)
public boolean Contains(
    ContextLink link
)
public function Contains(
    link : ContextLink
) : boolean

パラメータ

戻り値

型 : System.Boolean
特定の ContextLink オブジェクトが、ContextLinkCollection に格納されているかどうかを示すブール値。

次の例では、myLink という名前の特定の ContextLink が、links という名前の ContextLinkCollection に格納されているかどうかを確認する方法を示します。

If links.Contains(myLink) Then
    MessageBox.Show("The link is in the collection.")
End If
if (links.Contains(myLink))
    MessageBox.Show("The link is in the collection.");

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

ContextLinkCollection クラス

ContextLinkCollection メンバ

System.Windows.Ink 名前空間