Version

ShouldSerializeCharacterPositionFormat Method

Returns a Boolean value that determines whether the CharacterPositionFormat property is set to its default value.

Syntax
'Declaration
 
Protected Function ShouldSerializeCharacterPositionFormat() As Boolean
protected bool ShouldSerializeCharacterPositionFormat()

Return Value

Returns true if this property is not set to its default value
Remarks

Returns True if the CharacterPositionFormat property is not set to its default value; otherwise, it returns False.

Invoke the ResetCharacterPositionFormat method to reset this property to its default value.

Example
' 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.

Public Class MyToolbarsManager
      Inherits UltraToolbarsManager
 
      Public ReadOnly Property IsStyleSetToDefaultValue() As Boolean
            Get
                  ' Call our UltraToolbarManager base class protected method
                  ' ShouldSerializeStyle to determine if the Style property
                  ' is currently set to its default value.
                  If Me.ShouldSerializeStyle() = True Then
                        return False
                  else
                        return True
                  End If
            End Get
      End Property
End Class
// 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.

public class MyToolbarsManager : UltraToolbarsManager
{
      public bool 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())
                        return false;
                  else
                        return true;
            }
      }
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also