PropertyMap.Remove Method (String)

 

Deletes the given property from the mapping.

Namespace:   System.Windows.Forms.Integration
Assembly:  WindowsFormsIntegration (in WindowsFormsIntegration.dll)

public void Remove(
	string propertyName
)

Parameters

propertyName
Type: System.String

The name of the property to remove.

Exception Condition
ArgumentNullException

propertyName is null.

The following code example shows how to remove a mapping for the Cursor property to an ElementHost control.

// The RemoveCursorMapping method deletes the default
// mapping for the Cursor property.
private void RemoveCursorMapping()
{
    elemHost.PropertyMap.Remove("Cursor");
}

The following code example shows how to add a mapping for the Cursor property to a WindowsFormsHost control.

// The RemoveCursorMapping method deletes the default
// mapping for the Cursor property.
private void RemoveCursorMapping()
{
    wfHost.PropertyMap.Remove("Cursor");
}

.NET Framework
Available since 3.0
Return to top
Show: