Nevron .NET Vision
Nevron.Diagram.WinForm Namespace / NDrawingView Class
Members


In This Topic
    NDrawingView Class
    In This Topic
    The NDrawingView class represents a view, which is used to display and edit a single NDrawingDocument instance
    Object Model
    NDrawingView Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultPropertyAttribute("Document")>
    <System.ComponentModel.DesignerAttribute(Nevron.Internal.lCEE)>
    <System.Drawing.ToolboxBitmapAttribute(Nevron.Diagram.WinForm.NDrawingView, "Images.DrawingViewIcon.bmp")>
    <System.ComponentModel.LicenseProviderAttribute(Nevron.Diagram.WinForm.NDWFLicenseProvider)>
    <System.ComponentModel.DefaultEventAttribute("Click")>
    <System.ComponentModel.Design.Serialization.DesignerSerializerAttribute("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
    <System.ComponentModel.ToolboxItemFilterAttribute("System.Windows.Forms")>
    <System.ComponentModel.DesignerCategoryAttribute("Component")>
    <System.SerializableAttribute()>
    Public Class NDrawingView 
       Inherits NView
       Implements Nevron.Diagram.INHitTest, Nevron.Diagram.INInvalidatable, Nevron.Diagram.INMeasurementContext, Nevron.Diagram.INMeasurements, Nevron.Diagram.INMeasurementUnit, Nevron.Diagram.INMeasurementUnitConverter, Nevron.Diagram.INStyleable, Nevron.Diagram.INStyleComposer, Nevron.Diagram.INView, Nevron.Diagram.INVisible, Nevron.Diagram.INWorld, INStatusBarInfo, Nevron.Dom.INAttributeContainer, Nevron.Dom.INAttributeObserver, Nevron.Dom.INNode, Nevron.Dom.INNodeContainer, Nevron.Dom.INServiceProvider, Nevron.Globalization.INLocalizable, Nevron.GraphicsCore.INWindowRenderSurfaceHost, Nevron.INReferenceHolder, Nevron.INReferenceProvider 
    'Usage
     
    
    Dim instance As NDrawingView
    [System.ComponentModel.DefaultProperty("Document")]
    [System.ComponentModel.Designer(Nevron.Internal.lCEE)]
    [System.Drawing.ToolboxBitmap(Nevron.Diagram.WinForm.NDrawingView, "Images.DrawingViewIcon.bmp")]
    [System.ComponentModel.LicenseProvider(Nevron.Diagram.WinForm.NDWFLicenseProvider)]
    [System.ComponentModel.DefaultEvent("Click")]
    [System.ComponentModel.Design.Serialization.DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [System.ComponentModel.ToolboxItemFilter("System.Windows.Forms")]
    [System.ComponentModel.DesignerCategory("Component")]
    [System.Serializable()]
    public class NDrawingView : NView, Nevron.Diagram.INHitTest, Nevron.Diagram.INInvalidatable, Nevron.Diagram.INMeasurementContext, Nevron.Diagram.INMeasurements, Nevron.Diagram.INMeasurementUnit, Nevron.Diagram.INMeasurementUnitConverter, Nevron.Diagram.INStyleable, Nevron.Diagram.INStyleComposer, Nevron.Diagram.INView, Nevron.Diagram.INVisible, Nevron.Diagram.INWorld, INStatusBarInfo, Nevron.Dom.INAttributeContainer, Nevron.Dom.INAttributeObserver, Nevron.Dom.INNode, Nevron.Dom.INNodeContainer, Nevron.Dom.INServiceProvider, Nevron.Globalization.INLocalizable, Nevron.GraphicsCore.INWindowRenderSurfaceHost, Nevron.INReferenceHolder, Nevron.INReferenceProvider  
    Remarks
    The drawing view content layer is populated with trackers, which are the primary means for modifying different aspects of the shapes contained in the drawing document. Each tracker contains a set of handles, which the user can drag. The appearance of the trackers and the different types of handles is controlled by the NTrackersAppearance attribute, accessible from the TrackersAppearance property.

    The drawing view exposes three useful components, which can help you to better position and align the document elements edited in the drawing view. These are - grid, horizontal ruler and vertical ruler. Common for them all is that their measurement unit can be different from the measurement unit of the document.

    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Windows.Forms.Control
                Nevron.Diagram.WinForm.NView
                   Nevron.Diagram.WinForm.NDrawingView
                      Nevron.Diagram.WinForm.NViewportPreview

    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