Overload | Description |
---|---|
Draw3dText(Graphics,String,Rectangle,SpecialEffectsTextStyle,SpecialEffectsTextAlignmentFlags,Int32,Int32,Color,Color,Color,Font,Image) | Draws three-dimensional text onto the target device context using the specified font, color, and style. |
Draw3dText(IntPtr,String,Rectangle,SpecialEffectsTextStyle,SpecialEffectsTextAlignmentFlags,Int32,Int32,Color,Color,Color,IntPtr,IntPtr) | Draws three-dimensional text onto the target device context using the specified font, color, and style. |
This example shows the minimum requirements for using the Draw3dText method.
Visual Basic | Copy Code |
---|---|
Public Sub Draw3dText(ByVal g As Graphics, ByVal destRect As Rectangle) |
C# | Copy Code |
---|---|
public void Draw3dText(Graphics g, Rectangle destRect) |
Use the textStyle and textAlignment parameters to control the style and justification of the three-dimensional text. Use the textFont parameter to place an image (such as a gradient) on the surface of the three-dimensional text.
Drop shadows are available only for the following textStyle values:
- DropShadow
- BlockShadow
- OutlineBlock
Shadow colors are available only for the following textStyle values:
- InsetHeavy
- InsetExtraHeavy
- RaisedHeavy
- RaisedExtraHeavy
Highlight colors are available only for the following textStyle values:
- InsetLight
- InsetExtraLight
- InsetHeavy
- InsetExtraHeavy
- RaisedLight
- RaisedExtraLight
- RaisedHeavy
- RaisedExtraHeavy
- OutlineBlock
For general information, refer to Implementing Special Effects.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family