Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.25
Crosshair Property
See Also 
Leadtools.Windows.Controls Namespace > MagnifyGlass Class : Crosshair Property





Gets or sets the type of the crosshair. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property Crosshair As MagnifyGlassCrosshair
Visual Basic (Usage)Copy Code
Dim instance As MagnifyGlass
Dim value As MagnifyGlassCrosshair
 
instance.Crosshair = value
 
value = instance.Crosshair
C# 
public MagnifyGlassCrosshair Crosshair {get; set;}
Managed Extensions for C++ 
public: __property MagnifyGlassCrosshair get_Crosshair();
public: __property void set_Crosshair( 
   MagnifyGlassCrosshair value
);
C++/CLI 
public:
property MagnifyGlassCrosshair Crosshair {
   MagnifyGlassCrosshair get();
   void set (MagnifyGlassCrosshair value);
}
XAML Attributes Usage 

<object Crosshair=Leadtools.Windows.Controls.MagnifyGlassCrosshair .../>

Dependency Property Information 

Identifier field

CrosshairProperty

Metadata properties set to true

AffectsRender

Return Value

The Crosshair type.

Example

For XAML example, refer to Shape.

For C#/VB examples, refer to Shape.

Remarks

The use of the CrosshairThickness and CrosshairBrush properties depend on the value of this property.
  • If it is set to MagnifyGlassCrosshair.Fine both of them will be used.
  • If it is set to MagnifyGlassCrosshair.None neither of them will be used.
  • Requirements

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

    See Also