' Each settable property on an Infragistics controls and sub-object has an
' associated ShouldSerializeXXX method (where XXX is the property name)
' that returns true if the property has been modified and needs to be
' serialized. Since this method is protected, it is only available to
' classes derived from Infragistics controls or sub-objects.
'
' The following example shows how to create a class derived from an
' Infragistics UltraToolbarsManager control and expose a property that
' calls UltraToolbarManager's protected ShouldSerializeStyle method
' to return whether the Style property is set to its default value.
PublicClass MyToolbarsManager
Inherits UltraToolbarsManager
PublicReadOnlyProperty IsStyleSetToDefaultValue() AsBooleanGet' Call our UltraToolbarManager base class protected method
' ShouldSerializeStyle to determine if the Style property
' is currently set to its default value.
IfMe.ShouldSerializeStyle() = TrueThenreturnFalseelsereturnTrueEndIfEndGetEnd PropertyEnd Class
'宣言
Protected Function ShouldSerializeMemoTitleAppearance() As Boolean
// Each settable property on an Infragistics controls and sub-object has an
// associated ShouldSerializeXXX method (where XXX is the property name)
// that returns true if the property has been modified and needs to be
// serialized. Since this method is protected, it is only available to
// classes derived from Infragistics controls or sub-objects.
//
// The following example shows how to create a class derived from an
// Infragistics UltraToolbarsManager control and expose a property that
// calls UltraToolbarManager's protected ShouldSerializeStyle method
// to return whether the Style property is set to its default value.
publicclass MyToolbarsManager : UltraToolbarsManager
{
publicbool IsStyleSetToDefaultValue
{
get
{
// Call our UltraToolbarManager base class protected method
// ShouldSerializeStyle to determine if the Style property
// is currently set to its default value.
if (this.ShouldSerializeStyle())
returnfalse;
elsereturntrue;
}
}
}
'宣言
Protected Function ShouldSerializeMemoTitleAppearance() As Boolean