FillStyle Property (NSurfaceSeriesBase)
In This Topic
Controls the fill style applied to the surface. You can modify the surface filling transparency, material properties like specular color, emissive color, shininess, as well as apply textures, gradients and patterns to the surface.
Syntax
'Declaration
<System.ComponentModel.CategoryAttribute("Appearance")>
<System.ComponentModel.DescriptionAttribute("Controls the fill style applied to the surface.")>
<System.ComponentModel.EditorAttribute(Nevron.Editors.NFillStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)>
Public Property FillStyle As NFillStyle
'Usage
Dim instance As NSurfaceSeriesBase
Dim value As NFillStyle
instance.FillStyle = value
value = instance.FillStyle
[System.ComponentModel.Category("Appearance")]
[System.ComponentModel.Description("Controls the fill style applied to the surface.")]
[System.ComponentModel.Editor(Nevron.Editors.NFillStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)]
public NFillStyle FillStyle {get; set;}
Example
The code below applies a texture to the surface:
surface.FillStyle = new NImageFillStyle("c:\texture.jpg")
surface.FillStyle = new NImageFillStyle(@"c:\texture.jpg");
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also