Gets or sets the Pen used to draw the Pan Rectangle.
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;} |
Managed Extensions for C++ | |
---|
public: __property Pen get_RectanglePen();
public: __property void set_RectanglePen(
Pen value
); |
C++/CLI | |
---|
public:
property Pen RectanglePen {
Pen get();
void set (Pen value);
} |
XAML | |
---|
For XAML information, see the Pen type. |
Dependency 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