Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

...

Wiki Markup
{description}
{excerpt}Assigns a data validation rule to all cells in the Range. If the [DataValidation] object uses a local reference or area in a formula (i.e. "=A5:B7"), then the range will adjust those local references accordingly based on the range's location. The original {{DataValidation}} object will not be affected.

...

Signature
C#C#

{excerpt}
{signature:C#}
 public void SetDataValidation(DataValidation dataValidation)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub SetDataValidation(ByVal dataValidation As DataValidation)
Parameters
{signature}
{parameters}
{param:dataValidation}A [DataValidation|DataValidation] object representing the data validation rule to assign to the Range.{param}
{example}{code:csharp|title=C#}
rng.SetDataValidation(myDataValidation);
{code}
{code:vb.net
|title=vb.net
}
rng.SetDataValidation(myDataValidation){code}

{example}
Param
dataValidationdataValidation

A DataValidation object representing the data validation rule to assign to the Range.

Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle