GoDiagram Web Reference
GoDrawing Class Members
Fields  Properties  Methods 


The following tables list the members exposed by GoDrawing.

Public Constructors
 NameDescription
Public ConstructorGoDrawing ConstructorOverloaded.   
Top
Public Fields
 NameDescription
Public FieldAddedPointThis is a GoObject.Changed subhint.  
Public FieldChangedAngleThis is a GoObject.Changed subhint identifying changes to the value of the Angle property.  
Public FieldChangedDataThis is a GoObject.Changed subhint identifying changes to the value of the Data property.  
Public FieldChangedFigureThis is a GoObject.Changed subhint identifying changes to the value of the Figure property.  
Public FieldChangedFillModeThis is a GoObject.Changed subhint identifying changes to the value of the FillMode property.  
Public FieldChangedPickMarginThis is a GoObject.Changed subhint identifying changes to the value of the PickMargin property.  
Public FieldChangedReshapablePointsThis is a GoObject.Changed subhint identifying changes to the value of the ReshapablePoints property.  
Public FieldChangedReshapableRectangleThis is a GoObject.Changed subhint identifying changes to the value of the ReshapableRectangle property.  
Public FieldChangedSameEndPointsThis is a GoObject.Changed subhint identifying changes to the value of the SameEndPoints property.  
Public FieldChangedShowsBoundingHandleThis is a GoObject.Changed subhint identifying changes to the value of the ShowsBoundingHandle property.  
Public FieldChangedSmoothCurvesThis is a GoObject.Changed subhint identifying changes to the value of the SmoothCurves property.  
Public FieldChangedUnrotatedBoundsThis is a GoObject.Changed subhint identifying changes to the value of the UnrotatedBounds property.  
Public FieldModifiedPointThis is a GoObject.Changed subhint.  
Public FieldRemovedPointThis is a GoObject.Changed subhint.  
Top
Public Properties
 NameDescription
Public PropertyAngleGets or sets the angle at which this shape is drawn.  
Public PropertyAutoRescalesGets or sets whether this object automatically rescales its appearance when its size changes. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyBottomGets or sets this object's bottom coordinate. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyBoundsWhenever the size and/or position is changed, we clear out any cached data. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushGets or sets the brush used to fill the outline of this shape. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushColorGets or sets the main or background color of the brush. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushFocusScalesGets or sets the size of the focus area for path gradients, as normalized fractions of the size of the shape. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushForeColorGets or sets the foreground color of a brush. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushMidColorGets or sets the middle color of a gradient brush. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushMidFractionGets or sets the fractional distance between the end colors at which the middle color is drawn. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushPointGets or sets the end point for linear gradients or the focus point for path gradients, as normalized fractions of the size of the shape. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushStartPointGets or sets the start point for linear gradients, as normalized fractions of the size of the shape. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyBrushStyleGets or sets the kind of brush used by this shape. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyCopyableGets or sets whether the user can copy this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyDataGets or sets both the array of bytes of GoDrawingActions and the array of PointFs, bundled together in a GoDrawingData object.  
Public PropertyDeletableGets or sets whether the user can delete this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyDocumentGets the document that this object belongs to, or null if this is not in a layer or if this is in a view layer. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyDraggingObjectGets the object that will be dragged instead of this selected object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyDragsNodeGets or sets whether this object, when selected and a child of a group, and when dragged, drags the parent node instead. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyEditableGets or sets whether the user can edit this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyFigureGets or sets the last known kind of GoFigure for this shape.  
Public PropertyFiguresCountReturns the number of figures currently in this shape.  
Public PropertyFillModeGets or sets how Paint and ContainsPoint operate on closed figures.  
Public PropertyHeightGets or sets this object's height. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyLayerGets the layer to which this object belongs. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyLeftGets or sets this object's left coordinate, the X position. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyLocationGets or sets this object's natural position. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyMovableGets or sets whether the user can move this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyObserversGets an enumerator over the list of observer objects of this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyParentGets the parent group for this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyPenGets or sets the pen used to draw the outline of this shape. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyPenColorGets or sets the color of the pen. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyPenWidthGets or sets the width of the pen. (Inherited from Northwoods.GoWeb.GoShape)
Public PropertyPickMarginGets or sets the approximate width of the region on either side of an open shape's line that is still considered "inside" the shape when picking.  
Public PropertyPointsCountGets the number of points in this shape.  
Public PropertyPrintableGets or sets whether the view can print this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyReshapableGets or sets whether the user can reshape this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyReshapablePointsGets or sets whether this object, when selected, displays resize handles at each point of this shape, instead of the standard four or eight resize handles at the corners and middles of the rectangular bounds.  
Public PropertyReshapableRectangleGets or sets whether this object, when selected, displays the standard four or eight resize handles at the corners and middles of the rectangular bounds, when this object is reshapable and ReshapablePoints is false.  
Public PropertyResizableGets or sets whether the user can resize this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyResizesRealtimeGets or sets whether this object continuously changes its size during a user resizing operation. [In Web Forms there is no continuous visual feedback of a resize.] (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyRightGets or sets this object's right coordinate. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertySameEndPointsGets or sets whether the first and last point of each figure are at the same point.  
Public PropertySelectableGets or sets whether the user can select this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertySelectionObjectGets the object that gets selection handles when this object is selected. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyShadowedGets or sets whether this object is painted with a drop shadow. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyShowsBoundingHandleGets or sets whether this object, when selected, displays a bounding selection handle around this shape.  
Public PropertySmoothCurvesGets or sets whether all points joining any two adjacent Bezier segments form a smooth curve.  
Public PropertyTopGets or sets this object's top coordinate, the Y position. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyUnrotatedBoundsGets or sets the Bounds of this shape if the Angle were zero.  
Public PropertyViewGets the view that this object belongs to, or null if this is not in a layer or if this is in a document layer. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyVisibleGets or sets whether the user can see this object. (Inherited from Northwoods.GoWeb.GoObject)
Public PropertyWidthGets or sets this object's width. (Inherited from Northwoods.GoWeb.GoObject)
Top
Public Methods
 NameDescription
Public MethodAddObserverRegister an object as an observer of changes to this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodAddPointHandlesAdd selection handles for each point of this shape, if this shape is resizable and reshapable.  
Public MethodAddRectangleHandlesAdd the standard selection handles, except that the standard four or eight resize handles are positioned at the rotated corners and sides of this shape.  
Public MethodAddSelectionHandlesOverridden. Display the appropriate selected appearance, normally, resize selection handles at each point of the shape.  
Public MethodCanCopyCalled to see if the user can copy this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanDeleteCalled to see if the user can delete this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanEditCalled to see if the user can edit this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanMoveCalled to see if the user can move this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanPrintCalled to see if the view can print this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanReshapeCalled to see if the user can reshape this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanResizeCalled to see if the user can resize this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanSelectCalled to see if the user can select this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCanViewCalled to see if the user can see this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodChangedNotify this object's document or view that some part of this object's state has been changed, via the GoDocument.Changed event and using the GoChangedEventArgs event args class. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodChangeValueOverridden. Performs changes for undo and redo.  
Public MethodChangingNotify this object's document or view that some part of this object's state is about to be changed. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodClearPointsRemove all figures from this shape.  
Public MethodCloseAllFiguresCloses all figures in the shape.  
Public MethodCloseFigureOverloaded. Closes the figure containing the given index.  
Public MethodCompleteAllFiguresCompletes all figures by adding a line segment from the last point to the start point of each figure, if needed.  
Public MethodCompleteFigureOverloaded. Completes a figure by adding a line segment from the last point to the start point of the figure, if needed.  
Public MethodComputeMoveCalculate a new location for this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodComputeResizeCalculate a new bounding rectangle for this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodContainedByRectangleConsider the Pen width when determining if this shape is inside a rectangle. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodContainsPointOverridden. A point is in a figure only if it is inside its fill area if the figure is closed (even if it has no Brush), and only if the point is near any of the lines of the figures if those figures are open.  
Public MethodCopyThis convenience method just makes a copy of the object itself, using a generic GoCopyDictionary. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCopyNewValueForRedoOverridden. Copies state to permit a redo.  
Public MethodCopyObjectOverridden. Overridden to avoid sharing internal data structures.  
Public MethodCopyObjectDelayedFor objects that require a second pass to complete the copying, this method is called after the first pass of copying all of the objects in CopyFromCollection(IGoCollection). (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCopyOldValueForUndoOverridden. Copies state to permit an undo.  
Public MethodCreateBoundingHandleOverridden. Produce a rotated rectangle to surround the shape.  
Public MethodCreateEditorCreate a GoControl that implements an editor for this object in the given view. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCreateResizeHandleCreate a resize handle for this object, given a handle ID. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodCurveToOverloaded. Extend the current figure by drawing a Bezier curve from the last point to another point, with two control points to guide the curve.  
Public MethodDoBeginEditStart editing this object in the given view. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodDoEndEditStop editing this object in the given view. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodDoMoveCalled when a user moves this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodDoResizeOverridden. When the resize handles are at each point of the shape, the user's dragging of a resize handle should just change that point in the curve.  
Public MethodDoResizePointHandlesThis method is called to handle dragging of resize handles for the points of this shape.  
Public MethodDoResizeRectangleHandlesThis method is called to handle resizing the standard eight corner/middle resize handles.  
Public MethodExpandPaintBoundsThe expanded paint bounds for a shape includes any Pen width and miter limit and any drop shadow. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodExtractShapeRemoves a figure or figures from a GoDrawing, placing them in a new GoDrawing. Returns null if the parameters are incorrect.  
Public MethodFillDoubleEdgeOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with the start color, with most of the center being Color.White, and ending with the starting color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillEllipseGradientOverloaded. Set the GoShape.Brush to be a gradient occupying this shape's GoObject.Bounds, with the color color along the four edges of the rectangle, surrounding a very light version of that color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillHalfGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, and having the last half of the gradient be the solid color color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillMiddleGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, having the middle with a color lighter than color, and ending with the starting color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillRectangleGradientOverloaded. Set the GoShape.Brush to be a gradient occupying this shape's GoObject.Bounds, with the color color along the four edges of the rectangle, surrounding a very light version of that color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillShadedGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, having the middle with a color lighter than color, and ending with a darker color than the color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillShapeFringeOverloaded. Set the GoShape.Brush to be a path shaped gradient starting with the start color, with most of the center being Color.White. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillShapeGradientOverloaded. Set the GoShape.Brush to be a path shaped gradient with the color color surrounding a very light version of that color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillShapeHighlightOverloaded. Set the GoShape.Brush to be a path shaped gradient that is mostly the start color, with a white "highlight". (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillSimpleGradientOverloaded. Set the GoShape.Brush to be a simple vertical linear gradient using the given color. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFillSingleEdgeOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with the start color, with most of the center being Color.White. (Inherited from Northwoods.GoWeb.GoShape)
Public MethodFlipHorizontalOverloaded. Horizontally flips this GoDrawing about its center.  
Public MethodFlipVerticalOverloaded. Vertically flips this GoDrawing about its center.  
Public MethodGetActionGet the action at a particular index.  
Public MethodGetContextMenuCalled to get a GoContextMenu to display for this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetCursorNameCalled when rendering the view to determine the cursor, if any, to display over this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetNearestIntersectionPointOverridden. The closest intersection point of a shape with a line is the closest such point for each of its segments.  
Public MethodGetPartInfoReturn a GoPartInfo that describes this object and that can be transmitted to the client (user agent) as JavaScript data structures that can be used by code running on the client. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetPointGet the point at a particular index.  
Public MethodGetRectangleSpotLocationGet the position of a spot in a rectangle. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetSegmentNearPointReturn the index of the first point of a segment of this shape that is close to a given point.  
Public MethodGetShadowBrushGet a Brush for painting a drop shadow in the given view. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetShadowOffsetGets the size of a drop shadow for this object in the given view. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetShadowPenGet a Pen for painting a drop shadow in the given view. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetSpotLocationGet the position of a spot on this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodGetToolTipCalled to get a String to display as a tooltip for this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodHasClosedFiguresDetermines if the GoDrawing has closed figures  
Public MethodInsertCurveFromOverloaded. Insert a Bezier curve segment into this shape that will end at the given index.  
Public MethodInsertCurveToOverloaded. Insert a Bezier curve segment into this shape at the given index.  
Public MethodInsertLineFromOverloaded. Insert a straight line segment into this shape that will end at the given index.  
Public MethodInsertLineToOverloaded. Insert a straight line segment into this shape at the given index.  
Public MethodInsertShapeInserts a GoShape into the GoDrawing at the given index.  
Public MethodInsertStartAtOverloaded. Start a new figure at the given point, perhaps ending any ongoing figure at that index.  
Public MethodInvalidateViewsCause all views to repaint this object when they get a chance. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodIsChildOfDetermines if this object is a child, perhaps indirectly, of the given object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodIsClosedFigureThis predicate determines if the figure containing the given index is closed.  
Public MethodIsFigureIndexThis predicate is true when the given index is the start of a figure in this shape.  
Public MethodIsSegmentIndexThis predicate is true when the given index is the start of a segment of this shape.  
Public MethodJoinFigureRemove the StartAt action that begins the figure at point idx, causing the figure to become part of the previous figure.  
Public MethodLineToOverloaded. Extend the current figure by drawing a straight line to a point.  
Public MethodMakePathOverridden. Returns a GraphicsPath representation of what will be drawn.  
Public MethodMakeSmoothCurvesIterates through all of the points, attempting to smooth any adjacent bezier curves.  
Public MethodOnContextClickCalled when the user context clicks on this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnDoubleClickCalled when the user double clicks on this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnEnterLeaveCalled when the document object immediately under the mouse changes after a drag. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnGotSelectionCalled when this object becomes selected. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnHoverCalled when the user hovers over this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnLostSelectionCalled when this object becomes unselected. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnMouseOverCalled when the user moves the mouse over this object when not dragging or resizing. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnSelectionDroppedCalled after the user has dropped the selection on this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnSelectionDropRejectCalled during a user's drag of the view's Selection when the mouse is over this object, to give this object a chance to veto a drop. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOnSingleClickCalled when the user single clicks on this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodOpenAllFiguresOpens all figures in the shape.  
Public MethodOpenFigureOpens the figure containing the given index.  
Public MethodPaintOverridden. Paint this shape, with an optional shadow.  
Public MethodPickReturn an object at a point, perhaps only a selectable one. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodRemoveThis convenience method just removes this object from its container, if there is any. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodRemoveObserverMake sure an object is not an observer of changes to this object. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodRemoveSegmentRemove the action at the given index.  
Public MethodRemoveSelectionHandlesRemove all selection handles for this object for the given selection collection. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodReversePathsReverse the order of actions and points in this shape.  
Public MethodRotateChange the angle of this shape by rotating it around a given axis point.  
Public MethodSetPointOverloaded. Replace the point at a particular index;  
Public MethodSetRectangleSpotLocationModify a rectangle such that its new spot location is at a given point. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodSetSizeKeepingLocationSets a new size for this object while maintaining the same location. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodSetSpotLocationOverloaded. Move this object so this object's given spot is at the given location. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodSpotOppositeGet the spot that is on the opposite side of a given spot. (Inherited from Northwoods.GoWeb.GoObject)
Public MethodStartAtOverloaded. Extend this shape by starting a new figure at a particular point.  
Top
Protected Methods
 NameDescription
Protected MethodComputeBoundsOverridden. The bounding rectangle of a shape is computed as the smallest rectangle that includes all of its points.  
Protected MethodGetPathGets a cached GraphicsPath produced by a call to GoShape.MakePath. (Inherited from Northwoods.GoWeb.GoShape)
Protected MethodOnBoundsChangedOverridden. Changing the bounds of a shape may change all of its points.  
Protected MethodOnLayerChangedCalled when this object's layer is changed. (Inherited from Northwoods.GoWeb.GoObject)
Protected MethodOnObservedChangedCalled when an observed object has been changed. (Inherited from Northwoods.GoWeb.GoObject)
Protected MethodOnParentChangedCalled when this object's parent is changed. (Inherited from Northwoods.GoWeb.GoObject)
Protected MethodResetPathOverridden. Overridden from base class to include myClosedPath.  
Top
See Also

Reference

GoDrawing Class
Northwoods.GoWeb Namespace

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback