Click or drag to resize
CommonExtensionsClearIfSet Method
Clears the property if a value has been set.

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram (in Telerik.WinControls.RadDiagram.dll) Version: 2018.1.220.40 (2018.1.220.40)
Syntax
public static bool ClearIfSet(
	this RadObject dependencyObject,
	RadProperty dependencyProperty
)

Parameters

dependencyObject
Type: Telerik.WinControlsRadObject
The dependency object.
dependencyProperty
Type: Telerik.WinControlsRadProperty
The dependency property to clear.

Return Value

Type: Boolean
Returns true if the value has been cleared.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RadObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullException Will be raised if either the dependencyObject or the dependencyProperty is null.
See Also