'Declaration Public Enum XsdConstraintFlags Inherits System.Enum
public enum XsdConstraintFlags : System.Enum
Member | Description |
---|---|
All | Specifies that all of the constraints should be applied. |
DefaultValue | Specifies that the DefaultValue constraint should be applied to columns. This corresponds to the 'default' attribute in XSD. |
Enumeration | Specifies that the Enumeration constraint should be applied to columns. This corresponds to the 'enumeration' facet in XSD. |
FixedValue | Specifies that the FixedValue constraint should be applied to columns. This corresponds to the 'fixed' attribute in XSD. |
ImplicitXsdBaseTypeConstraints | Specifies that the implicit constraints imposed by the built-in XSD base type should be enforced. For example, if the base XSD type is 'positiveInteger' then the cell value must be greater than zero. |
MaxExclusive | Specifies that the MaxExclusive constraint should be applied to columns. This corresponds to the 'maxExclusive' facet in XSD. |
MaxInclusive | Specifies that the MaxInclusive constraint should be applied to columns. This corresponds to the 'maxInclusive' facet in XSD. |
MaxLength | Specifies that the MaxLength constraint should be applied to columns. This corresponds to the 'maxLength' facet in XSD. |
MaxRows | Specifies that the MaxRows constraint should be applied to bands. This corresponds to the 'maxOccurs' attribute in XSD. |
MinExclusive | Specifies that the MinExclusive constraint should be applied to columns. This corresponds to the 'minExclusive' facet in XSD. |
MinInclusive | Specifies that the MinInclusive constraint should be applied to columns. This corresponds to the 'minInclusive' facet in XSD. |
MinLength | Specifies that the MinLength constraint should be applied to columns. This corresponds to the 'minLength' facet in XSD. |
MinRows | Specifies that the MinRows constraint should be applied to bands. This corresponds to the 'minOccurs' attribute in XSD. |
Nullable | Specifies that the Nullable constraint should be applied to columns. This corresponds to the 'nillable' attribute in XSD. |
RegexPattern | Specifies that the RegexPattern constraint should be applied to columns. This corresponds to the 'pattern' facet in XSD. |
Private Sub SetupGrid() ' Setup the flag so that all of the available constraints except for 'Enumeration' will be enforced. ' Dim xsdFlags As XsdConstraintFlags = XsdConstraintFlags.All And Not XsdConstraintFlags.Enumeration Me.ultraGrid1.EnforceXsdConstraints("..\someSchema.xsd", xsdFlags) End Sub
private void SetupGrid() { // Setup the flag so that all of the available constraints except for 'Enumeration' will be enforced. // XsdConstraintFlags xsdFlags = XsdConstraintFlags.All & ~XsdConstraintFlags.Enumeration; this.ultraGrid1.EnforceXsdConstraints( "..\\..\\someSchema.xsd", xsdFlags ); }
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