Visual Basic (Declaration) | |
---|---|
Overloads Public Sub DrawRotated3dText( _ ByVal hdc As IntPtr, _ ByVal text As String, _ ByVal destRect As Rectangle, _ ByVal angle As Integer, _ ByVal textStyle As SpecialEffectsTextStyle, _ ByVal textAlignment As SpecialEffectsTextAlignmentFlags, _ ByVal xDepth As Integer, _ ByVal yDepth As Integer, _ ByVal textColor As Color, _ ByVal shadowColor As Color, _ ByVal hiliteColor As Color, _ ByVal textHfont As IntPtr, _ ByVal foreImageHdc As IntPtr _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void DrawRotated3dText( IntPtr hdc, string text, Rectangle destRect, int angle, SpecialEffectsTextStyle textStyle, SpecialEffectsTextAlignmentFlags textAlignment, int xDepth, int yDepth, Color textColor, Color shadowColor, Color hiliteColor, IntPtr textHfont, IntPtr foreImageHdc ) |
Managed Extensions for C++ | |
---|---|
public: void DrawRotated3dText( IntPtr hdc, string* text, Rectangle destRect, int angle, SpecialEffectsTextStyle textStyle, SpecialEffectsTextAlignmentFlags textAlignment, int xDepth, int yDepth, Color textColor, Color shadowColor, Color hiliteColor, IntPtr textHfont, IntPtr foreImageHdc ) |
C++/CLI | |
---|---|
public: void DrawRotated3dText( IntPtr hdc, String^ text, Rectangle destRect, int angle, SpecialEffectsTextStyle textStyle, SpecialEffectsTextAlignmentFlags textAlignment, int xDepth, int yDepth, Color textColor, Color shadowColor, Color hiliteColor, IntPtr textHfont, IntPtr foreImageHdc ) |
Parameters
- hdc
- Handle to a destination device context.
- text
- Text string.
- destRect
- Rectangle to be used as the display destination rectangle.
- angle
- Text angle, in tenths of degrees.
- textStyle
- Text style. Use this parameter to control the style and justification of the three-dimensional text. For valid values refer to SpecialEffectsTextStyle.
- textAlignment
- Text Alignment, For valid values refer to SpecialEffectsTextAlignmentFlags.
- xDepth
- Horizontal shadow position.
- yDepth
- Vertical shadow position.
- textColor
- Value that specifies the text color.
- shadowColor
- Value that specifies the shadow color.
- hiliteColor
- Value that specifies the border color.
- textHfont
- A handle to the Font object that will be used for drawing the 3D text.
- foreImageHdc
- a handle to Graphics object that will be used to place an image (such as a gradient) on the surface of the three-dimensional text. Use null to paint the color specified in textColor.
This example shows the minimum requirements for using the DrawRotated3dText method.
Visual Basic | Copy Code |
---|---|
Public Sub DrawRotated3dText(ByVal g As Graphics, ByVal destRect As Rectangle) |
C# | Copy Code |
---|---|
public void DrawRotated3dText(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
shadowColor is available only for the following textStyle values:
- InsetHeavy
- InsetExtraHeavy
- RaisedHeavy
- RaisedExtraHeavy
hiliteColor is 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