| GridControlSetStyleRange Method (Range, Style, CellModifyType) |
Applies cell formattings to the specified range of cells.
Namespace: Stingray.GridAssembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax public virtual bool SetStyleRange(
Range range,
Style style,
CellModifyType modifyType
)
Public Overridable Function SetStyleRange (
range As Range,
style As Style,
modifyType As CellModifyType
) As Boolean
public:
virtual bool SetStyleRange(
Range^ range,
Style^ style,
CellModifyType modifyType
)
Parameters
- range
- Type: Stingray.GridRange
Range of cells to which the style should be
applied. - style
- Type: Stingray.GridStyle
The Style object to apply. - modifyType
- Type: Stingray.GridCellModifyType
How style is applied to the range.
If you want to remove style objects, set this parameter to
Remove and set
style to nullptr.
Return Value
Type:
Booleantrue if the operation is successful,
false otherwise.
See Also