Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
RectanglePen Property
See Also 
Leadtools.Windows.Controls Namespace > ImagePanViewer Class : RectanglePen Property





Gets or sets the Pen used to draw the Pan Rectangle. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property RectanglePen As Pen
Visual Basic (Usage)Copy Code
Dim instance As ImagePanViewer
Dim value As Pen
 
instance.RectanglePen = value
 
value = instance.RectanglePen
C# 
public Pen RectanglePen {get; set;}
C++/CLI 
public:
property Pen RectanglePen {
   Pen get();
   void set (Pen value);
}
XAML Syntax 
For XAML information, see the Pen type.

Dependencies Property Information 

Identifier field

RectanglePenProperty

Metadata properties set to true

AffectsRender

XAML Syntax 
For XAML information, see the Pen type.

Dependencies Property Information 

Identifier field

RectanglePenProperty

Metadata properties set to true

AffectsRender

Return Value

The Pan Rectangle Pen. The default color is red and default thickness is 1.

Example

For XAML example, refer to Source.

For C#/VB examples, refer to Source.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also