Spread Windows Forms 18
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddTextEffectToCell Method
The preset text effect.
The text in the shape.
The name of the font used in the shape.
The size (in points) of the font used in the shape.
The font used in the shape to bold.
The font used in the shape to italic.
The row index of the upper-left corner of the shape's bounding box.
The column index of the upper-left corner of the shape's bounding box.


In This Topic
    AddTextEffectToCell Method
    In This Topic
    Creates an IShape object that represents the new text effect object.
    Syntax
    'Declaration
     
    
    Function AddTextEffectToCell( _
       ByVal textEffect As PresetTextEffect, _
       ByVal text As String, _
       ByVal fontName As String, _
       ByVal fontSize As Double, _
       ByVal bold As Boolean, _
       ByVal italic As Boolean, _
       ByVal row As Integer, _
       ByVal column As Integer _
    ) As IShape
    'Usage
     
    
    Dim instance As IShapes
    Dim textEffect As PresetTextEffect
    Dim text As String
    Dim fontName As String
    Dim fontSize As Double
    Dim bold As Boolean
    Dim italic As Boolean
    Dim row As Integer
    Dim column As Integer
    Dim value As IShape
     
    value = instance.AddTextEffectToCell(textEffect, text, fontName, fontSize, bold, italic, row, column)

    Parameters

    textEffect
    The preset text effect.
    text
    The text in the shape.
    fontName
    The name of the font used in the shape.
    fontSize
    The size (in points) of the font used in the shape.
    bold
    The font used in the shape to bold.
    italic
    The font used in the shape to italic.
    row
    The row index of the upper-left corner of the shape's bounding box.
    column
    The column index of the upper-left corner of the shape's bounding box.

    Return Value

    The created IShape object.
    See Also