LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
AnnStretch Enumeration
See Also  
Leadtools.Windows.Annotations Namespace : AnnStretch Enumeration



The AnnStretch Enumeration supports WPF/Silverlight.

The AnnStretch Enumeration is available in LEADTOOLS Document and Medical Imaging toolkits.

Describes how content is resized to fill its allocated space. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Enum AnnStretch 
   Inherits System.Enum
   Implements IComparableIConvertibleIFormattable 
Visual Basic (Usage)Copy Code
Dim instance As AnnStretch
C# 
public enum AnnStretch : System.Enum, IComparableIConvertibleIFormattable  
C++/CLI 
public enum class AnnStretch : public System.Enum, IComparableIConvertibleIFormattable  

Members

MemberDescription
Fill

The content is resized to fill the destination dimensions. The aspect ratio is not preserved.

None

The content preserves its original size.

Uniform

The content is resized to fit in the destination dimensions while it preserves its native aspect ratio.

UniformToFill

The content is resized to fill the destination dimensions while it preserves its native aspect ratio. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions.

Example

For C#/VB examples, refer to AnnPolygonObject.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Windows.Annotations.AnnStretch

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

AnnStretch requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.