Note: This API is now obsolete.
Removes a style by Object from the collection.
[ObsoleteAttribute("Use the override methods with an index or name instead.",
false)]
public virtual void Remove(
StyleBase style
)
<ObsoleteAttribute("Use the override methods with an index or name instead.",
false)>
Public Overridable Sub Remove (
style As StyleBase
)
public: [ObsoleteAttribute(L"Use the override methods with an index or name instead.", false)] virtual void Remove( StyleBase^ style )
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when the style is invalid or not exist in the collection. |
| InvalidOperationException | Thrown when style is still in use. |