ExtendedProperties コレクションから ExtendedProperty オブジェクトを削除します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Sub Remove ( _
ep As ExtendedProperty _
)
'使用
Dim instance As ExtendedProperties
Dim ep As ExtendedProperty
instance.Remove(ep)
public void Remove(
ExtendedProperty ep
)
public:
void Remove(
ExtendedProperty^ ep
)
public void Remove(
ExtendedProperty ep
)
public function Remove(
ep : ExtendedProperty
)
パラメータ
- ep
型 : Microsoft.Ink.ExtendedProperty
ExtendedProperties コレクションから削除する ExtendedProperty オブジェクト。
解説
このメソッドは、インク データのスナップショットまたはインク データへの参照からのみ ExtendedProperty オブジェクトを削除し、実際のインク データからは ExtendedProperty を削除しません。
例
この C# の例では、Strokes コレクション theStrokes にあるすべての Stroke オブジェクトの ExtendedProperties プロパティから ExtendedProperty オブジェクト theExtendedProperty を削除します。
// Remove the ExtendedProperty object from the ExtendedProperties property of
// each stroke in the strokes collection.
foreach (Stroke theStroke in theStrokes)
{
// Test for theExtendedProperty on this stroke.
if (theStroke.ExtendedProperties.Contains(theExtendedProperty))
{
// Remove the extended property from this stroke's extended
// properties list.
theStroke.ExtendedProperties.Remove(theExtendedProperty);
}
}
この Microsoft® Visual Basic® .NET の例では、Strokes コレクション theStrokes にあるすべての Stroke オブジェクトの ExtendedProperties プロパティから ExtendedProperty オブジェクト theExtendedProperty を削除します。
'Remove the ExtendedProperty object from the ExtendedProperties property of
'each stroke in the strokes collection.
For Each theStroke As Stroke In theStrokes
'Test for theExtendedProperty on this stroke.
If theStroke.ExtendedProperties.Contains(theExtendedProperty) Then
'Remove the extended property from this stroke's extended
'properties list.
theStroke.ExtendedProperties.Remove(theExtendedProperty)
End If
Next
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0