Xceed Workbooks for .NET v2.0 Documentation
SetNotations Method
Example 


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > DataValidation Class : SetNotations Method
The Address of the Cell or CellRange where data should be validated.
Sets where the DataValidation process should validate data.
Syntax
'Declaration
 
Public Function SetNotations( _
   ByVal notations As IEnumerable(Of String) _
) As DataValidation
'Usage
 
Dim instance As DataValidation
Dim notations As IEnumerable(Of String)
Dim value As DataValidation
 
value = instance.SetNotations(notations)

Parameters

notations
The Address of the Cell or CellRange where data should be validated.
Example
DataValidation validation = DataValidation.Create( ValidationType.TextLength ).SetRange( 5, 10 ).SetNotations( new List<string>() { "A1:B2", "C10:F20"}));

doc.Worksheets[0].DataValidation.Add( validation );
Requirements

Target Platforms: Windows 11, Windows 10, 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

See Also

Reference

DataValidation Class
DataValidation Members