LEADTOOLS WinRT (Leadtools.Annotations.Core)
LEAD Technologies, Inc

Fill Property (AnnContainer)

Example 

Gets or sets the object to use when filling the interior of this AnnContainer. WinRT support
Syntax
public AnnBrush Fill {get; set;}
 get_Fill();
set_Fill(value);

Property Value

The object to use when filling the interior of this AnnContainer. The default value is null.
Remarks

A value of null means do not fill the background of the container.

Example
 
[TestMethod]
public void AnnContainer_Fill()
{
   // Get the container in the automation object
   AnnContainer container = _automation.Container;
   // Add a blue border
   container.Stroke = AnnStroke.Create(AnnSolidColorBrush.Create("Blue"), LeadLengthDHelper.Create(2));
   // Add semi transparent black background
   container.Fill = AnnSolidColorBrush.Create("rgba(0, 0, 0, 0.5)");

   // Show it
   _automation.Invalidate(LeadRectDHelper.Empty);
}
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

Reference

AnnContainer Class
AnnContainer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.