GrapeCity.Xaml.SpreadSheet.Data
SetStyleName(Int32,Int32,String) Method
Example 


The row index of the cell in the model, or -1 to specify a column or default model.
The column index of the cell in the model, or -1 to specify a row or default model.
The name of the style to set.
Sets the style for the specified cell, column, row, or default model to the specified style name.
Syntax
'Declaration
 
Public Overloads Sub SetStyleName( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal value As String _
) 
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim value As String
 
instance.SetStyleName(row, column, value)
public void SetStyleName( 
   int row,
   int column,
   string value
)

Parameters

row
The row index of the cell in the model, or -1 to specify a column or default model.
column
The column index of the cell in the model, or -1 to specify a row or default model.
value
The name of the style to set.
Example
This example uses the SetStyleName method.
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo();
aaa.Background = new SolidColorBrush(Windows.UI.Colors.Green);
aaa.Name = "aaa";
gcSpreadSheet1.Sheets[0].NamedStyles.Add(aaa);
gcSpreadSheet1.Sheets[0].SetStyleName(0, 0, "aaa");
//gcSpreadSheet1.Sheets[0].SetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "aaa");
Dim aaa As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo()
aaa.Background = New SolidColorBrush(Windows.UI.Colors.Green)
aaa.Name = "aaa"
GcSpreadSheet1.Sheets(0).NamedStyles.Add(aaa)
GcSpreadSheet1.Sheets(0).SetStyleName(0, 0, "aaa")
'GcSpreadSheet1.Sheets(0).SetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "aaa")
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options