Spread WPF 18
GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddTextEffect 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 position (in pixels) of the upper-left corner of the shape's bounding box relative to the upper-left corner of the document.
The position (in pixels) of the upper-left corner of the shape's bounding box relative to the top of the document.


In This Topic
    AddTextEffect Method
    In This Topic
    Creates an IShape object that represents the new text effect object.
    Syntax
    'Declaration
     
    Function AddTextEffect( _
       ByVal textEffect As PresetTextEffect, _
       ByVal text As String, _
       ByVal fontName As String, _
       ByVal fontSize As Double, _
       Optional ByVal bold As Boolean, _
       Optional ByVal italic As Boolean, _
       Optional ByVal x As Double, _
       Optional ByVal y As Double _
    ) 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 x As Double
    Dim y As Double
    Dim value As IShape
     
    value = instance.AddTextEffect(textEffect, text, fontName, fontSize, bold, italic, x, y)
    IShape AddTextEffect( 
       PresetTextEffect textEffect,
       string text,
       string fontName,
       double fontSize,
       bool bold,
       bool italic,
       double x,
       double y
    )

    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.
    x
    The position (in pixels) of the upper-left corner of the shape's bounding box relative to the upper-left corner of the document.
    y
    The position (in pixels) of the upper-left corner of the shape's bounding box relative to the top of the document.

    Return Value

    The created IShape object.
    See Also