Visual Basic (Declaration) | |
---|---|
Overloads Public Sub Draw3dShape( _ ByVal g As Graphics, _ ByVal shape As SpecialEffectsShape, _ ByVal destRect As Rectangle, _ ByVal backColor As Color, _ ByVal backImage As Image, _ ByVal backRect As Rectangle, _ ByVal backStyle As SpecialEffectsBackStyle, _ ByVal fillColor As Color, _ ByVal fillStyle As SpecialEffectsFillStyle, _ ByVal borderColor As Color, _ ByVal borderStyle As SpecialEffectsBorderStyle, _ ByVal borderWidth As Integer, _ ByVal innerHiliteColor As Color, _ ByVal innerShadowColor As Color, _ ByVal innerStyle As SpecialEffectsInnerStyle, _ ByVal innerWidth As Integer, _ ByVal outerHiliteColor As Color, _ ByVal outerShadowColor As Color, _ ByVal outerStyle As SpecialEffectsOuterStyle, _ ByVal outerWidth As Integer, _ ByVal shadowX As Integer, _ ByVal shadowY As Integer, _ ByVal shadowColor As Color, _ ByVal shapeRegion As Region _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
Managed Extensions for C++ | |
---|---|
public: void Draw3dShape( Graphics g, SpecialEffectsShape shape, Rectangle destRect, Color backColor, Image backImage, Rectangle backRect, SpecialEffectsBackStyle backStyle, Color fillColor, SpecialEffectsFillStyle fillStyle, Color borderColor, SpecialEffectsBorderStyle borderStyle, int borderWidth, Color innerHiliteColor, Color innerShadowColor, SpecialEffectsInnerStyle innerStyle, int innerWidth, Color outerHiliteColor, Color outerShadowColor, SpecialEffectsOuterStyle outerStyle, int outerWidth, int shadowX, int shadowY, Color shadowColor, Region shapeRegion ) |
Parameters
- g
- The destination Graphics object.
- shape
- Shape type. For valid values, refer to SpecialEffectsShape.
- destRect
- Rectangle to be used as the display destination rectangle.
- backColor
- Value that specifies the background color.
- backImage
- The background image object. Use this parameter and prcBack to place an image from another device context onto the background of the shape. To use a background image, the fillStyle parameter must not be Solid.
- backRect
- Rectangle to be used as the display background rectangle.
- backStyle
- Background style. For valid values, refer to SpecialEffectsBackStyle.
- fillColor
- Value that specifies the foreground color.
- fillStyle
- Foreground style. For valid values, refer to fillStyle.
- borderColor
- Value that specifies the border color.
- borderStyle
- Border style. For valid values, refer to SpecialEffectsBorderStyle.
- borderWidth
- Border width.
- innerHiliteColor
- Value that specifies the inner band highlight color.
- innerShadowColor
- Value that specifies the inner band shadow color.
- innerStyle
- Inner band style. For valid values, refer to SpecialEffectsInnerStyle. The inner band is available only for squares and rectangles.
- innerWidth
- Inner band width.
- outerHiliteColor
- Value that specifies the highlight color for the outer band.
- outerShadowColor
- Value that specifies the shadow color for the inner band .
- outerStyle
- Outer band style. For valid values, refer to SpecialEffectsOuterStyle.
- outerWidth
- Outer band width.
- shadowX
- Horizontal position of the shadow.
- shadowY
- Vertical position of the shadow.
- shadowColor
- Value that specifies the shadow color.
- shapeRegion
- Region object that defines the shape. This parameter is used only if the value for the shape parameter is Region.
This example shows the minimum requirements for using the Draw3dShape method.
Visual Basic | Copy Code |
---|---|
Public Sub Draw3dShape(ByVal g As Graphics, ByVal destRect As Rectangle) |
C# | Copy Code |
---|---|
public void Draw3dShape(Graphics g, Rectangle destRect) |
Use backImage and backRect to place an image from another device context onto the background of the shape.
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