Version

Shading Property (TableCellSettingsBase)

Gets/sets the shading for the background of the cell
Syntax
'Declaration
 
Public Property Shading As Nullable(Of Shading)
public Nullable<Shading> Shading {get; set;}
Remarks

Note: a type converter is supplied to allow this structure to be specified in xaml. Here are some sample values, in quotes, along with corresponding c# code examples:

  • "automatic" - new Shading(ColorInfo.Automatic)
  • "#FF0000FF" - new Shading(new ColorInfo(Colors.Blue))
  • "#FF0000FF,-0.6" - new Shading(new ColorInfo(Colors.Blue, -.6d))
  • "DiagStripe:automatic" - new Shading(ColorInfo.Automatic, ShadingPattern.DiagStripe, null)
  • "Pct35:#FF0000FF,0.3" - new Shading(new ColorInfo(Colors.Blue, .3d), ShadingPattern.Pct35, null)
  • "Pct35:#FF0000FF,0.3:#FFFF0000" - new Shading(new ColorInfo(Colors.Blue, .3d), ShadingPattern.Pct35, new ColorInfo(Colors.Red))
  • "Pct35:#FF0000FF,0.3:#FFFF0000,-0.5" - new Shading(new ColorInfo(Colors.Blue, .3d), ShadingPattern.Pct35, new ColorInfo(Colors.Red, -.5d))

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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