Version

ComponentRole Class Members

The following tables list the members exposed by ComponentRole.

Public Properties
 NameDescription
Public PropertyButtonStyleReturns the recommended button style for the component.  
Public PropertyCheckBoxGlyphInfoReturns the glyph info used to draw check boxes.  
Public PropertyComponentReturns the associated component or control.  
Public PropertyDisposed (Inherited from Infragistics.Shared.DisposableObject)
Public PropertyEnabledReturns or sets whether the associated component should use application styling.  
Public PropertyHeaderStyleReturns the recommended header style for the component.  
Public PropertyNameReturns the name of the component role that will be used to locate the associated application style information for the component level properties.  
Public PropertyPropertiesCacheCountNumber of properties whose resolved values will be cached by the CachePropertyValue and GetCachedProperty methods. The propertyIndex parameter passed into those methods must be less than this count.  
Public PropertyRadioButtonGlyphInfoReturns the glyph info used to draw radio buttons.  
Public PropertyResolutionOrderReturns the recommended resolution order when resolving the application style information.  
Public PropertyStyleLibraryNameReturns the name of the library from which the application styling information should be obtained.  
Public PropertyStyleManagerReturns the StyleManager instance that represents the styleset used by the component.  
Public PropertyStyleSetNameReturns or sets the name of the associated styleset.  
Public PropertyStyleSetNameResolvedReturns the resolved name of the styleset that the component will use.  
Public PropertyUseFlatModeReturns the recommended flat mode state for the component.  
Public PropertyUseOsThemesReturns the recommended state for whether the component should use the os themes to render its elements.  
Public PropertyViewStyleReturns the recommended view style for the component.  
Protected Properties
 NameDescription
Protected PropertySynchronizingObjectReturns an object that can be used to synchronize calls to the associated component's thread.  
Public Methods
 NameDescription
Public MethodCachePropertyValueOverloaded. Caches the resolved value of the specified property.  
Public MethodClearCachedPropertyValuesClears the cached resolved property values.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDispose (Inherited from Infragistics.Shared.DisposableObject)
Public MethodGetCachedPropertyReturns cached resolved value for the property identified by the propertyIndex. The propertyIndex parameter must be less than the value set on the PropertiesCacheCount property of this component role. Also note that whenever the control property value changes, the cache needs to be cleared using the ClearCachedPropertyValues method.  
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodGetPropertyOverloaded. Returns the value for the specified property name.  
Public MethodGetResolutionOrderInfoOverloaded. Returns a structure that provides information about whether the control settings or application style information should take predence based on the ResolutionOrder.  
Public MethodGetRoleOverloaded. Returns the role with the specified name.  
Public MethodHasPropertyIndicates if the component role has a value for the specified custom property.  
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodVerifyNotDisposed (Inherited from Infragistics.Shared.DisposableObject)
Protected Methods
 NameDescription
Protected MethodGetRoleNamesUsed by the associated ComponentRole to determine which UIRole instances should be cached.  
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnDisposeOverridden. Invoked when the component role is disposed.  
Protected MethodOnStyleCachedClearedVirtual method called after OnStyleChanged and after the style cache has been cleared. This is to allow a component to synchronously update itself after the caching has been cleared.  
Protected MethodOnStyleChangedInvoked when the style information for the component has changed.  
See Also