Intersoft ClientUI Documentation
HasDefaultValue Method
See Also  Send Feedback
Intersoft.Client.Framework Namespace > Utility Class : HasDefaultValue Method






control
The control to check.
property
The property to check.
Check whether a control has the default value for a property.

Syntax

Visual Basic (Declaration) 
Public Shared Function HasDefaultValue( _
   ByVal control As DependencyObject, _
   ByVal property As DependencyProperty _
) As Boolean
Visual Basic (Usage)Copy Code
Dim control As DependencyObject
Dim property As DependencyProperty
Dim value As Boolean
 
value = Utility.HasDefaultValue(control, property)
C# 
public static bool HasDefaultValue( 
   DependencyObject control,
   DependencyProperty property
)
Delphi 
public function HasDefaultValue( 
    control: DependencyObject;
    property: DependencyProperty
): Boolean; static; 
JScript 
public static function HasDefaultValue( 
   control : DependencyObject,
   property : DependencyProperty
) : boolean;
Managed Extensions for C++ 
public: static bool HasDefaultValue( 
   DependencyObject* control,
   DependencyProperty* property
) 
C++/CLI 
public:
static bool HasDefaultValue( 
   DependencyObject^ control,
   DependencyProperty^ property
) 

Parameters

control
The control to check.
property
The property to check.

Return Value

True if the property has the default value; false otherwise.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.