NevronOpenVision
Nevron.Nov.Diagram Namespace / NShape Class


In This Topic
    NShape Class Methods
    In This Topic

    For a list of all members of this type, see NShape members.

    Public Methods
     NameDescription
    Public MethodSets the left-top corner of the shape Alignment Box in page coordinates to be the specified point. This method is internally performing a translation of the shape.  
    Public MethodOverridden. Appends custom context menu items.  
    Public MethodOverridden. Overriden to return true.  
    Public MethodOverridden. Overriden to return true  
    Public Methodstatic (Shared in Visual Basic)Creates an ellipse shape  
    Public Methodstatic (Shared in Visual Basic)Initializes a 1D shape, the geometry of which draws a line from the Begin to the End point of the shape.  
    Public Methodstatic (Shared in Visual Basic)Creates a 2D shape, the geometry of which draws a rectangle inside the WH box.  
    Public MethodOverridden. Overriden to return the shape abilities  
    Public MethodGets a list of the accessible shapes (e.g. NeighbourShapes + the accessible shapes of the neighbour shapes)  
    Public MethodGets the alignment box of the shape. For a 2D shape this is the bounds of the shape box projection in page coordinates. For a 1D shape this is the bounds of the shape end-points projection in page coordinates.  
    Public MethodGets the alignment box of the shape. For a 2D shape this is the bounds of the shape box projection in parent coordinates. For a 1D shape this is the bounds of the shape end-points projection in parent coordinates.  
    Public MethodGets the begin point of the shape (in parent coordinates)  
    Public MethodGets the begin point of the shape in drawing coordinates  
    Public MethodGets the begin point of the shape in page coordinates  
    Public MethodOverridden. Gets the shape clipping region.  
    Public MethodGets a list of the destination shapes (e.g. the shapes which are connected to the end plug of outgoing shapes).  
    Public MethodGets the current display bounds of this shape (in local coordinates).  
    Public MethodGets the display bounds of the shape in page coordinates.  
    Public MethodGets the end point of the shape (in parent coordinates)  
    Public MethodGets the end point of the shape in drawing coordinates  
    Public MethodGets the end point of the shape (in page coordinates)  
    Public MethodGets a list of the shapes to whose inward ports, the plugs of this shape are connected  
    Public MethodGets a list of the 1D shapes whose end plug is connected to an inward port of this shape  
    Public MethodGets the local pin point position (in local coordinates).  
    Public MethodGets a list of shapes which will be moved when this shape is moved.  
    Public MethodGets the union of the Source and Destination shapes.  
    Public MethodGets a list of the 1D shapes whose start plug is connected to an inward port of this shape  
    Public MethodOverridden. Determines whether the 2D painting of the object can be cached.  
    Public MethodGets the pin point position (in parent coordinates).  
    Public MethodGets the pin point position in page coordinates.  
    Public MethodGets the pin point position (in local coordinates)  
    Public MethodGets the first port with the specified name. Returns null if no such port exists.  
    Public MethodGets a list of the predecessor shapes (e.g. SourceShapes + the predecessor shapes of the source shapes)  
    Public MethodOverridden. Overriden to add additional shape specific protection  
    Public MethodGets a list of the 1D shapes whose start and end plugs are connected to inward port(s) of this shape (e.g. 1D shapes, which start and end in this shape)  
    Public MethodGets the shape style to apply to this styleable element.  
    Public MethodGets a list of the shapes, which consider this shape as master (i.e. are glued in a master-slave manner)  
    Public MethodGets the snapped box direction  
    Public MethodGets a list of the source shapes (e.g. the shapes which are connected to the start plug of incoming shapes).  
    Public MethodGets a list of the successor shapes (e.g. DestinationShapes + the successor shapes of the destination shapes)  
    Public MethodHelper method that gets a NTableBlock object  
    Public MethodHelper method that gets a NTextBlock object  
    Public MethodGets the text block content without creating a text block if it not already created  
    Public MethodGets the text selection  
    Public MethodGets the theme properties to use for styling this styleable element.  
    Public MethodOverridden. Gets the matrix that transforms local to parent coordinates.  
    Public MethodGets the box formed by the shape Width and Height (in shape local coordinates)  
    Public MethodGets the box formed by the shape Width and Height, projected to the shape parent coordinates.  
    Public MethodOverloaded. Glues (connects) the begin point of this shape to a factor location on the specified FROM shape geometry contour. 0 is the begin of the countour, 1 is the end of the contour.  
    Public MethodGlues (connects) the begin point of this shape to the intersection point between the vector formed by the FROM shape center and the begin-point direction vector and the FROM shape geometry.  
    Public MethodGlues the begin point of the shape to the vertex of the specified geometry command.  
    Public MethodGlues the begin point of this shape to the nearest port of the specified FROM shape.  
    Public MethodGlues the begin point of this shape to the specified port  
    Public MethodGlues the begin point to the specified shape. The type of glue that is performed depends on the shape.DefaultShapeGlue property.  
    Public MethodGlues the begin point of the shape to a point defined by factors in the specified FROM shape box.  
    Public MethodGlues (connects) the begin point of this shape to the intersection point between the vector formed by the FROM shape center and the begin-point direction vector and the FROM shape Width/Height box.  
    Public MethodGlues the begin point of the shape to a factor location along the FROM shape line. 0 is the begin of the line, 1 is the end of the line.  
    Public MethodOverloaded. Glues (connects) the end point of this shape to a factor location on the specified TO shape geometry contour. 0 is the end of the countour, 1 is the end of the contour.  
    Public MethodGlues (connects) the end point of this shape to the intersection point between the vector formed by the TO shape center and the end-point direction vector and the TO shape geometry.  
    Public MethodGlues the end point of the shape to the vertex of the specified geometry command.  
    Public MethodGlues the end point of this shape to the nearest port of the specified TO shape.  
    Public MethodGlues the end point of this shape to the specified port  
    Public MethodGlues the end point to the specified shape. The type of glue that is performed depends on the shape.DefaultShapeGlue property.  
    Public MethodGlues the end point of the shape to a point defined by factors in the specified TO shape box.  
    Public MethodGlues (connects) the end point of this shape to the intersection point between the vector formed by the TO shape center and the end-point direction vector and the TO shape Width/Height box.  
    Public MethodGlues the end point of the shape to a factor location along the TO shape line. 0 is the begin of the line, 1 is the end of the line.  
    Public MethodGlues (connects) a port of this shape to a port of the master shape. This type of glue translates the shape to match the port locations, and rotates the shape to match the port directions.  
    Public MethodOverloaded. Overridden. Hit tests a shape by point  
    Public MethodHelper method for setting up a 1D shape. Sets the ShapeType to 1D.

    If xformType is Vector, the shape transform is initialized as a vector connecting the begin and end points, such that: Binds the Width to the distance between the Begin and End points. Binds the Angle to the angle formed by the line connecting the Begin and End points and the X axis. Binds the PinX and PinY to the middle point of the line connecting the Begin and End points. Binds the LocPinX and LocPinY to the center of the shape local alignment box.

    If xformType is Box, the shape transform is initialized as a vector connecting the begin and end points, such that: Binds the Width to the X distance between the Begin and End points. Binds the Height to the Y distance between the Begin and End points. Sets the angle to zero. Binds the PinX and PinY to the middle point of the line connecting the Begin and End points. Binds the LocPinX and LocPinY to the center of the shape.

     
    Public MethodHelper method that sets the ShapeType to Shape2D and places the local pin point inside the center of the shape Width and Height (via expressions). Additionally, if the shape was previously a Shape1D, this method unglues the Begin and End points and destroys any expressions associated with the shape Angle, Width, Height, PinX and PinY properties. ShapeType = ENShapeType.Shape2D; SetFx(NShape.LocPinXProperty, new NShapeWidthFactorFx(0.5f)); SetFx(NShape.LocPinYProperty, new NShapeHeightFactorFx(0.5f));  
    Public MethodCalled by child or descendant arrange elements that consider this element as arrange parent, and want to inform it to invalidate it's arrange.  
    Public MethodCalled by child or descendant measure elements that consider this element as measure parent, and want to inform it to invalidate it's measure.  
    Public Methodstatic (Shared in Visual Basic)Gets whether the given shape is a connector, which is true if it is a 1D shape and its UserClass is equal to "Connector".  
    Public MethodOverloaded. Overridden. Transforms a point in local coordinates to the coordinates of its parent coordinate system  
    Public MethodMoves the text block of the shape below it.  
    Public MethodOverloaded. Overridden. Transforms a point in parent coordinates to local coordinates  
    Public MethodRaises the QueryShowAutoConnectButton event  
    Public MethodOverloaded. Resizes the shape box by setting the specified value to the box point corresponding to a compass direction.  
    Public MethodRotates the shape with the specified angle amount. Internally this method calls SetAngle with a value equal to Angle + angle.  
    Public MethodSets the shape angle relatively to its parent (i.e. Page or Group). This operation unglues the shape from its master (if any). If the shape is inside the page, this method sets a constant value to the Angle property. If the shape is inside a group, this method also updates the expressions of the Width and Height properties, depending on the ResizeInGroup setting.  
    Public MethodOverloaded. Sets the arrange slot of the shape and positions it into it taking into account the horizontal and vertical placement specified in the LayoutData.  
    Public MethodSets a constant begin point of the shape (in parent coordinates). This implementation Unglues the begin point.  
    Public MethodOverloaded. Sets the bounding box the shape to be the specified rectangle (in parent coordinates).  
    Public MethodSets a constant end point of the shape (in parent coordinates). This implementation Unglues the end point.  
    Public MethodSets the shape Height. If the shape is inside a group, this method updates the expression for shape Height. If the shape is inside a page, this method sets a constant value to the shape Height.  
    Public MethodOverloaded. Sets the local pin point position (in local coordinates). By default the local pin point is specified relatively to the shape width and height. This implementation sets proportional expressions to the LocPinX and LocPinY properties.  
    Public MethodOverloaded. Sets the pin point position (in parent coordinates). This operation unglues the shape from its master (if any). If the shape resides in a group, the Pin is expressed as factor expressions of the group dimensions. If the shape resides in a page, the Pin is set to constant values.  
    Public MethodOverloaded. Sets the shape property with the given name.  
    Public MethodSets the shape Width. If the shape is inside a group, this method updates the expression for shape Width. If the shape is inside a page, this method sets a constant value to the shape Width.  
    Public MethodOverridden. Shows the shape properties dialog  
    Public MethodSplits this shape with the given 2D shape. Works only if this shape is a splittable 1D shape (Splittable = true) and the given 2D shape can split shapes (CanSplit = true).  
    Public MethodOverloaded. Starts inplace editing for this shape, by showing the inplace editor of the shape.  
    Public MethodOverridden. Translate this item with the specified amounts. For 2D shapes this method translates the PinPoint, For 1D shapes this method translates the BeginPonit and EndPoint of the shape.  
    Public MethodTranslates a 1D shape, by offseting the begin and end points of the shape. The modification of both the begin and end points of the shape is optional. Throws an exception if this is not a 1D shape.  
    Public MethodTranslates a 2D shape, by offseting the PinPoint with the specified amounts. Throws an exception if this is not a 2D shape.  
    Public MethodTries to get the specified shape bounds (in shape coordinates)  
    Public MethodOverloaded. Tries to get the value of the specified property for the this shape by converting the variant value of the property to the given type.  
    Public MethodOverloaded. Glues the begin or end point of the shape to a snap point result. Returns true, if successfully glued to a port, shape or geometry. Otherwise returns false.  
    Public MethodDestroys the shape begin glue, end glue and master glue, if any.  
    Public MethodUnglues the begin point  
    Public MethodUnglues the end point  
    Public MethodUnglues this shape from the specified incomming shape. If the specified shape is not an incomming shape, does nothing.  
    Public MethodUnglues (disconnects) the outward connection of this shape if any.  
    Public MethodUnglues this shape from the specified outgoing shape. If the specified shape is not an outgoing shape, does nothing.  
    Public MethodUpdates the Width and Height box of the shape to encompass the geometry and inner shapes of the shape. This operation should be carefully used, since it refactors the geometry expressions to be proportional to the new shape bounds.  
    Public MethodOverridden. Validates the arrange of the element  
    Top
    Protected Methods
     NameDescription
    Protected MethodAborts the inplace editing  
    Protected MethodLayouts the content of the element inside the specified content area  
    Internal MethodOverridden.   
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Protected MethodCommits the inplace editing of the specified editor. Note that the editor must be created by this shape's CreateInplaceEditor method.  
    Protected MethodCreates the action commands - Flip HV/Rotate.  
    Protected MethodCreates the custom commands.  
    Protected MethodCreates the View menu item, that contains formatting commands like Fill, Stroke and Shadow.  
    Protected MethodCreates the Format Text menu item, that contains formatting commands like Fill, Stroke and Shadow.  
    Protected MethodCalled to create a default geometry.  
    Protected MethodCalled to create a default image block.  
    Protected MethodCreates the inplace edit control that this shape must use. This implementation creates a text box that is sized to the text block and positioned to the text block pin.  
    Protected MethodCreates and initializes the content of the scpecified inplace editor. This implementation creates a text box.  
    Protected MethodCalled to create the default shape style.  
    Protected MethodCalled to create a default text block.  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Methodstatic (Shared in Visual Basic)  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Methodstatic (Shared in Visual Basic)  
    Internal Method  
    Internal Method  
    Internal MethodOverridden.   
    Internal Method  
    Internal MethodOverridden.   
    Internal Methodstatic (Shared in Visual Basic)  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal MethodOverridden.   
    Protected MethodMeasures the desired size of the element content  
    Internal MethodOverridden.   
    Internal Method  
    Internal Method  
    Protected MethodOverridden. Updates any references or cache related to the visitor of the node ancestors  
    Protected Internal MethodCalled when the BeginPointGlue has changed.  
    Protected MethodOverridden. Called when a child node has been inserted  
    Protected MethodOverridden. Called when a child node has been removed  
    Protected MethodOverridden. Updates any references or cache related to the visitor of the node children  
    Protected MethodCalled when the shape behavior has changed.  
    Protected Internal MethodCalled whenever the geometries count or properties have changed. Raises the ControlsChanged event.  
    Protected MethodOverridden. Called when the node is deserialized  
    Protected Internal MethodCalled when the BeginGlue or EndGlue has changed.  
    Protected MethodCalled whenever the geometries count or properties have changed. Raises the EndPoints event.  
    Protected Internal MethodCalled whenever the geometry has changed. Raises the GeometryChanged event.  
    Protected Internal MethodCalled when the MasterElementRef property has changed.  
    Protected MethodOverridden. Called when the owner page of the shape has changed.  
    Protected Internal MethodCalled when the transformation from local to page coordinates of this shape has changed. Raises the page transform changed event.  
    Protected MethodOverridden. Called when the item permissions have changed.  
    Protected Internal MethodCalled whenever the ports count or ports properties have changed. Raises the PortsChanged event.  
    Protected MethodOverridden. Performs the element post-children custom paint.  
    Protected MethodOverridden. Performs the element pre-children custom paint.  
    Protected MethodCalled when the ShapeType has changed.  
    Protected MethodCalled when the ShowHandles has changed.  
    Protected MethodCalled whenever the Width or Height properties have changed. Raises the SizeChanged event.  
    Protected MethodCalled whenever the Width or Height properties are about to change  
    Protected Internal MethodCalled when the TextBlock has changed  
    Protected MethodCalled when the transformation from local to parent coordinates of this shape has changed. Raises the transform changed event.  
    Protected MethodCalled when the Visible property has changed.  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Protected MethodOverridden. Determines whether the visitor needs to visit this displayable branch.  
    Internal Method  
    Internal Method  
    Protected MethodFocuses the inplace editor content  
    Internal Method  
    Internal MethodOverridden.   
    Internal Method  
    Internal Method  
    Internal MethodOverridden.   
    Internal Method  
    Internal Method  
    Internal MethodOverridden.   
    Internal MethodOverridden.   
    Internal Method  
    Internal MethodOverridden.   
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Top
    See Also