[]
        
(Showing Draft Content)

C1.Win.FlexReport.CustomFields.Maps.Util.SetReadOnlyAttribute

SetReadOnlyAttribute Method

SetReadOnlyAttribute(object, string, bool)

Declaration
public static void SetReadOnlyAttribute(object component, string propName, bool isReadOnly)
Parameters
Type Name Description
object component
string propName
bool isReadOnly

SetReadOnlyAttribute(PropertyDescriptorCollection, string, bool)

Declaration
public static void SetReadOnlyAttribute(PropertyDescriptorCollection props, string propName, bool isReadOnly)
Parameters
Type Name Description
PropertyDescriptorCollection props
string propName
bool isReadOnly

SetReadOnlyAttribute(PropertyDescriptor, bool)

NOTE: Property MUST HAVE [ReadOnly(...)] specified already (in source)!!! otherwise this blows things up majorly.

Declaration
public static void SetReadOnlyAttribute(PropertyDescriptor prop, bool isReadOnly)
Parameters
Type Name Description
PropertyDescriptor prop
bool isReadOnly