GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / Changed Method
the value for GoChangedEventArgs.SubHint
An integer value.
An Object value.
A RectangleF value, also useful for PointF, SizeF, and float values.
An integer value.
An Object value.
A RectangleF value, also useful for PointF, SizeF, and float values.
In This Topic
    Changed Method (GoObject)
    In This Topic
    Notify 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.
    Syntax

    Parameters

    subhint
    the value for GoChangedEventArgs.SubHint
    oldI
    An integer value.
    oldVal
    An Object value.
    oldRect
    A RectangleF value, also useful for PointF, SizeF, and float values.
    newI
    An integer value.
    newVal
    An Object value.
    newRect
    A RectangleF value, also useful for PointF, SizeF, and float values.
    Remarks

    Any override of this method and any methods that this calls should not further modify this object, either directly or indirectly.

    Each of your property setters should call this method after actually changing the object's state. You should only call this method if the property's value actually changed. You should use the oldI, oldVal, and/or oldRect parameters for passing the previous old property value. You should use the newI, newVal, and/or newRect parameters for passing the new property value. The old and new values can be used by GoDocument.Changed event handlers to update their state. A special case of such event handlers is the GoUndoManager, which records the old and new values so that it can perform undo and redo operations.

    If SuspendsUpdates is true (it is normally false of course), this method does nothing. Your override of this method should check for SuspendsUpdates before invoking any updating functionality. If this object is part of a layer, it calls IGoLayerCollectionContainer.RaiseChanged with a hint of GoLayer.GoLayer.ChangedObject. If there are any observers watching changes to this object, this method calls OnObservedChanged on each of this object's observers.

    A number of subhints are pre-defined:

    GoObject
    RepaintAll 1000
    ChangedBounds 1001
    ChangedVisible 1003
    ChangedSelectable 1004
    ChangedMovable 1005
    ChangedCopyable 1006
    ChangedResizable 1007
    ChangedReshapable 1008
    ChangedDeletable 1009
    ChangedEditable 1010
    ChangedAutoRescales 1011
    ChangedResizesRealtime 1012
    ChangedShadowed 1013
    ChangedAddedObserver 1014
    ChangedRemovedObserver 1015
    ChangedDragsNode 1016
    ChangedPrintable 1017
    ChangedInitializing 1041
    LastChangedHint 10000
    GoGroup
    GoGroup.InsertedObject 1051
    GoGroup.RemovedObject 1052
    GoGroup.ChangedZOrder 1053
    GoGroup.ReplacedObject 1054
    GoGroup.ChangedPickableBackground 1055
    GoGroup.AddedChildName 1056
    GoGroup.RemovedChildName 1057
    GoShape
    GoShape.ChangedPen 1101
    GoShape.ChangedBrush 1102
    GoDrawing
    GoDrawing.AddedPoint 1151
    GoDrawing.RemovedPoint 1152
    GoDrawing.ModifiedPoint 1153
    GoDrawing.ChangedData 1154
    GoDrawing.ChangedFillMode 1155
    GoDrawing.ChangedAngle 1156
    GoDrawing.ChangedUnrotatedBounds 1160
    GoDrawing.ChangedSmoothCurves 1161
    GoDrawing.ChangedSameEndPoints 1162
    GoDrawing.ChangedShowsBoundingHandle 1163
    GoDrawing.ChangedReshapablePoints 1164
    GoDrawing.ChangedReshapableRectangle 1165
    GoDrawing.ChangedPickMargin 1166
    GoDrawing.ChangedFigure 1167
    GoStroke
    GoStroke.AddedPoint 1201
    GoStroke.RemovedPoint 1202
    GoStroke.ModifiedPoint 1203
    GoStroke.ChangedAllPoints 1204
    GoStroke.ChangedStyle 1205
    GoStroke.ChangedCurviness 1206
    GoStroke.ChangedHighlightPen 1236
    GoStroke.ChangedHighlight 1237
    GoStroke.ChangedHighlightWhenSelected 1238
    GoStroke.ChangedToArrowHead 1250
    GoStroke.ChangedToArrowLength 1251
    GoStroke.ChangedToArrowShaftLength 1252
    GoStroke.ChangedToArrowWidth 1253
    GoStroke.ChangedToArrowFilled 1254
    GoStroke.ChangedToArrowStyle 1255
    GoStroke.ChangedFromArrowHead 1260
    GoStroke.ChangedFromArrowLength 1261
    GoStroke.ChangedFromArrowShaftLength 1262
    GoStroke.ChangedFromArrowWidth 1263
    GoStroke.ChangedFromArrowFilled 1264
    GoStroke.ChangedFromArrowStyle 1265
    GoLink
    GoLink.ChangedLinkUserFlags 1300
    GoLink.ChangedLinkUserObject 1301
    ChangedFromPort 1302
    ChangedToPort 1303
    GoLink.ChangedOrthogonal 1304
    GoLink.ChangedRelinkable 1305
    GoLink.ChangedAbstractLink 1306
    GoLink.ChangedAvoidsNodes 1307
    GoLink.ChangedPartID 1309
    GoLink.ChangedAdjustingStyle 1310
    GoLink.ChangedToolTipText 1311
    GoLink.ChangedDraggableOrthogonalSegments 1312
    GoLabeledLink
    GoLabeledLink.ChangedLink 1311
    GoLabeledLink.ChangedFromLabel 1312
    GoLabeledLink.ChangedMidLabel 1313
    GoLabeledLink.ChangedToLabel 1314
    GoLabeledLink.ChangedFromLabelCentered 1315
    GoLabeledLink.ChangedMidLabelCentered 1316
    GoLabeledLink.ChangedToLabelCentered 1317
    GoPolygon
    GoPolygon.AddedPoint 1401
    GoPolygon.RemovedPoint 1402
    GoPolygon.ModifiedPoint 1403
    GoPolygon.ChangedAllPoints 1412
    GoPolygon.ChangedStyle 1414
    GoRoundedRectangle
    GoRoundedRectangle.ChangedCorner 1421
    GoRoundedRectangle.ChangedRoundedCornerSpots 1422
    GoTriangle
    GoTriangle.ChangedPointA 1431
    GoTriangle.ChangedPointB 1432
    GoTriangle.ChangedPointC 1433
    GoTriangle.ChangedAllPoints 1434
    GoHexagon
    GoHexagon.ChangedDistanceLeft 1442
    GoHexagon.ChangedDistanceRight 1443
    GoHexagon.ChangedDistanceTop 1444
    GoHexagon.ChangedDistanceBottom 1445
    GoHexagon.ChangedOrientation 1446
    GoHexagon.ChangedReshapeBehavior 1447
    GoHexagon.ChangedReshapableCorner 1448
    GoHexagon.ChangedKeepsLengthwiseSymmetry 1449
    GoHexagon.ChangedKeepsCrosswiseSymmetry 1450
    GoPie
    GoPie.ChangedStartAngle 1451
    GoPie.ChangedSweepAngle 1452
    GoPie.ChangedResizableStartAngle 1453
    GoPie.ChangedResizableEndAngle 1454
    GoTrapezoid
    GoTrapezoid.ChangedPointA 1460
    GoTrapezoid.ChangedPointB 1461
    GoTrapezoid.ChangedPointC 1462
    GoTrapezoid.ChangedPointD 1463
    GoTrapezoid.ChangedAllPoints 1464
    GoTrapezoid.ChangedOrientation 1465
    GoParallelogram
    GoParallelogram.ChangedSkew 1466
    GoParallelogram.ChangedReshapableSkew 1467
    GoParallelogram.ChangedDirection 1468
    GoOctagon
    GoOctagon.ChangedCorner 1469
    GoOctagon.ChangedReshapableCorner 1470
    GoCylinder
    GoCylinder.ChangedMinorRadius 1481
    GoCylinder.ChangedOrientation 1482
    GoCylinder.ChangedPerspective 1483
    GoCylinder.ChangedResizableRadius 1484
    GoCube
    GoCube.ChangedDepth 1491
    GoCube.ChangedPerspective 1492
    GoCube.ChangedReshapableDepth 1493
    GoText
    GoText.ChangedText 1501
    GoText.ChangedFamilyName 1502
    GoText.ChangedFontSize 1503
    GoText.ChangedAlignment 1504
    GoText.ChangedTextColor 1505
    GoText.ChangedBackgroundColor 1506
    GoText.ChangedTransparentBackground 1507
    GoText.ChangedBold 1508
    GoText.ChangedItalic 1509
    GoText.ChangedUnderline 1510
    GoText.ChangedStrikeThrough 1511
    GoText.ChangedMultiline 1512
    GoText.ChangedBackgroundOpaqueWhenSelected 1515
    GoText.ChangedClipping 1516
    GoText.ChangedAutoResizes 1518
    GoText.ChangedWrapping 1520
    GoText.ChangedWrappingWidth 1521
    GoText.ChangedGdiCharSet 1522
    GoText.ChangedEditorStyle 1523
    GoText.ChangedMinimum 1524
    GoText.ChangedMaximum 1525
    GoText.ChangedDropDownList 1526
    GoText.ChangedChoices 1527
    GoText.ChangedRightToLeft 1528
    GoText.ChangedRightToLeftFromView 1529
    GoText.ChangedBordered 1530
    GoText.ChangedStringTrimming 1531
    GoText.ChangedEditableWhenSelected 1532
    GoImage
    GoImage.ChangedImage 1601
    GoImage.ChangedResourceManager 1602
    GoImage.ChangedName 1603
    GoImage.ChangedAlignment 1604
    GoImage.ChangedAutoResizes 1605
    GoImage.ChangedImageList 1606
    GoImage.ChangedIndex 1607
    GoImage.ChangedThrowsExceptions 1608
    GoImage.ChangedNameIsUri 1609
    GoPort
    GoPort.ChangedPortUserFlags 1700
    GoPort.ChangedPortUserObject 1701
    GoPort.ChangedStyle 1702
    GoPort.ChangedObject 1703
    GoPort.ChangedValidFrom 1704
    GoPort.ChangedValidTo 1705
    GoPort.ChangedValidSelfNode 1706
    GoPort.ChangedFromSpot 1707
    GoPort.ChangedToSpot 1708
    GoPort.ChangedAddedLink 1709
    GoPort.ChangedRemovedLink 1710
    GoPort.ChangedValidDuplicateLinks 1711
    GoPort.ChangedEndSegmentLength 1712
    GoPort.ChangedPartID 1713
    GoPort.ChangedClearsLinksWhenRemoved 1714
    GoPort.ChangedValidSingleLink 1715
    GoGrid
    GoGrid.ChangedStyle 1801
    GoGrid.ChangedOrigin 1802
    GoGrid.ChangedOriginRelative 1803
    GoGrid.ChangedCellSize 1804
    GoGrid.ChangedLineColor 1805
    GoGrid.ChangedLineWidth 1806
    GoGrid.ChangedLineDashStyle 1807
    GoGrid.ChangedSnapDrag 1808
    GoGrid.ChangedSnapResize 1809
    GoGrid.ChangedCellColors 1810
    GoGrid.ChangedUnboundedSpots 1811
    GoGrid.ChangedSnapDragWhole 1812
    GoGrid.ChangedSnapOpaque 1814
    GoGrid.ChangedSnapCellSpot 1815
    GoGrid.ChangedMajorLineColor 1816
    GoGrid.ChangedMajorLineWidth 1817
    GoGrid.ChangedMajorLineDashStyle 1818
    GoGrid.ChangedMajorLineFrequency 1819
    GoGrid.ChangedLineDashPattern 1820
    GoGrid.ChangedMajorLineDashPattern 1821
    GoControl
    GoControl.ChangedControlType 1901
    GoNode
    GoNode.ChangedNodeUserFlags 2000
    GoNode.ChangedNodeUserObject 2001
    GoNode.ChangedToolTipText 2002
    GoNode.ChangedPartID 2004
    GoNodeIcon
    GoNodeIcon.ChangedMinimumIconSize 2050
    GoNodeIcon.ChangedMaximumIconSize 2051
    GoBasicNode
    GoBasicNode.ChangedLabelSpot 2101
    GoBasicNode.ChangedShape 2102
    GoBasicNode.ChangedLabel 2103
    GoBasicNode.ChangedPort 2104
    GoBasicNode.ChangedMiddleLabelMargin 2105
    GoBasicNode.ChangedAutoResizes 2106
    GoBoxNode
    GoBoxNode.ChangedBody 2201
    GoBoxNode.ChangedPortBorderMargin 2202
    GoBoxNode.ChangedPort 2203
    GoBoxPort
    GoBoxPort.ChangedLinkPointsSpread 2211
    GoBoxPort.ChangedFromSides 2212
    GoBoxPort.ChangedToSides 2213
    GoComment
    GoComment.ChangedTopLeftMargin 2301
    GoComment.ChangedBottomRightMargin 2302
    GoComment.ChangedPartID 2303
    GoComment.ChangedBackground 2304
    GoComment.ChangedLabel 2305
    GoBalloon
    GoBalloon.ChangedAnchor 2310
    GoBalloon.ChangedBaseWidth 2312
    GoBalloon.ChangedUnanchoredOffset 2313
    GoBalloon.ChangedReanchorable 2314
    GoGeneralNode
    GoGeneralNode.InsertedPort 2401
    GoGeneralNode.RemovedPort 2402
    GoGeneralNode.ReplacedPort 2403
    GoGeneralNode.ChangedTopLabel 2404
    GoGeneralNode.ChangedBottomLabel 2405
    GoGeneralNode.ChangedIcon 2406
    GoGeneralNode.ChangedOrientation 2407
    GoGeneralNode.ChangedFromEndSegmentLengthStep 2408
    GoGeneralNode.ChangedToEndSegmentLengthStep 2409
    GoGeneralNode.ChangedLeftPortsAlignment 2410
    GoGeneralNode.ChangedRightPortsAlignment 2411
    GoGeneralNode.ChangedLeftPortsLabelSpacing 2412
    GoGeneralNode.ChangedRightPortsLabelSpacing 2413
    GoGeneralNode.ChangedLeftPortLabelsInside 2414
    GoGeneralNode.ChangedRightPortLabelsInside 2415
    GoGeneralNodePort
    GoGeneralNodePort.ChangedName 2430
    GoGeneralNodePort.ChangedLabel 2431
    GoGeneralNodePort.ChangedSideIndex 2432
    GoGeneralNodePort.ChangedLeftSide 2433
    GoListGroup
    GoListGroup.ChangedSpacing 2501
    GoListGroup.ChangedAlignment 2502
    GoListGroup.ChangedLinePen 2503
    GoListGroup.ChangedBorderPen 2504
    GoListGroup.ChangedBrush 2505
    GoListGroup.ChangedCorner 2506
    GoListGroup.ChangedTopLeftMargin 2507
    GoListGroup.ChangedBottomRightMargin 2508
    GoListGroup.ChangedOrientation 2509
    GoListGroup.ChangedTopIndex 2510
    GoListGroup.ChangedMinimumItemSize 2511
    GoSimpleNode
    GoSimpleNode.ChangedText 2601
    GoSimpleNode.ChangedIcon 2602
    GoSimpleNode.ChangedLabel 2603
    GoSimpleNode.ChangedInPort 2604
    GoSimpleNode.ChangedOutPort 2605
    GoSimpleNode.ChangedOrientation 2606
    GoIconicNode
    GoIconicNode.ChangedDraggableLabel 2651
    GoIconicNode.ChangedIcon 2652
    GoIconicNode.ChangedLabel 2653
    GoIconicNode.ChangedPort 2654
    GoIconicNode.ChangedLabelOffset 2655
    GoSubGraph
    GoSubGraph.ChangedLabel 2702
    GoSubGraph.ChangedCollapsible 2703
    GoSubGraph.ChangedBackgroundColor 2704
    GoSubGraph.ChangedOpacity 2705
    GoSubGraph.ChangedLabelSpot 2706
    GoSubGraph.ChangedTopLeftMargin 2707
    GoSubGraph.ChangedBorderPen 2708
    GoSubGraph.ChangedCorner 2710
    GoSubGraph.ChangedPort 2711
    GoSubGraph.ChangedBottomRightMargin 2712
    GoSubGraph.ChangedCollapsedTopLeftMargin 2713
    GoSubGraph.ChangedCollapsedBottomRightMargin 2714
    GoSubGraph.ChangedCollapsedCorner 2715
    GoSubGraph.ChangedCollapsedLabelSpot 2716
    GoSubGraph.ChangedCollapsedObject 2717
    GoSubGraph.ChangedState 2718
    GoSubGraph.ChangedSavedBounds 2719
    GoSubGraph.ChangedSavedPaths 2720
    GoSubGraph.ChangedWasExpanded 2721
    GoSubGraph.ChangedExpandedResizable 2722
    GoTextNode
    GoTextNode.ChangedLabel 2801
    GoTextNode.ChangedBackground 2802
    GoTextNode.ChangedTopPort 2803
    GoTextNode.ChangedRightPort 2804
    GoTextNode.ChangedBottomPort 2805
    GoTextNode.ChangedLeftPort 2806
    GoTextNode.ChangedTopLeftMargin 2807
    GoTextNode.ChangedBottomRightMargin 2808
    GoTextNode.ChangedAutoResizes 2809
    GoButton
    GoButton.ChangedBackground 2901
    GoButton.ChangedIcon 2902
    GoButton.ChangedLabel 2903
    GoButton.ChangedTopLeftMargin 2904
    GoButton.ChangedBottomRightMargin 2905
    GoButton.ChangedActionEnabled 2906
    GoButton.ChangedAutoRepeating 2907
    GoCollapsibleHandle
    GoCollapsibleHandle.ChangedStyle 2950
    GoCollapsibleHandle.ChangedBordered 2951
    GoMultiTextNode
    GoMultiTextNode.InsertedLeftPort 3001
    GoMultiTextNode.InsertedRightPort 3002
    GoMultiTextNode.RemovedLeftPort 3003
    GoMultiTextNode.RemovedRightPort 3004
    GoMultiTextNode.ReplacedPort 3005
    GoMultiTextNode.ChangedTopPort 3006
    GoMultiTextNode.ChangedBottomPort 3007
    GoMultiTextNode.ChangedItemWidth 3008
    GoMultiTextNode.ChangedFromEndSegmentLengthStep 3009
    GoMultiTextNode.ChangedToEndSegmentLengthStep 3010
    GoSheet
    GoSheet.ChangedTopLeftMargin 3101
    GoSheet.ChangedBottomRightMargin 3102
    GoSheet.ChangedBackgroundImageSpot 3103
    GoSheet.ChangedShowsMargins 3104
    GoSheet.ChangedMarginColor 3105
    GoSheet.ChangedPaper 3110
    GoSheet.ChangedBackgroundImage 3111
    GoSheet.ChangedGrid 3112
    Please note that this list may not be complete--in fact you are encouraged to add new subhints for your own properties and other changes.

    See Also