Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Assigns a data validation rule to all cells in the Area. If the DataValidation object uses a local reference or area in a formula (i.e.

...

"=A5:B7"),

...

then

...

the

...

area

...

will

...

adjust

...

those

...

local

...

references

...

accordingly

...

based

...

on

...

the

...

area's

...

location.

...

The

...

original

...

DataValidation

...

object

...

will

...

not

...

be

...

affected.

...

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

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

Example
Code Block
csharp
csharp
titleC#

area.SetDataValidation(myDataValidation);
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

area.SetDataValidation(myDataValidation)
{code} {example} {scrollbar}
Scrollbar