GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoButton Class
Fields Properties Methods Events


In This Topic
    GoButton Class Members
    In This Topic

    The following tables list the members exposed by GoButton.

    Public Constructors
     NameDescription
    Public ConstructorConstruct a GoButton with an empty text label and no icon.  
    Top
    Public Fields
     NameDescription
    Public FieldThis is a GoObject.Changed subhint identifying changes to the value of the ActionEnabled property.  
    Public FieldThis is a GoObject.Changed subhint identifying changes to the value of the AutoRepeating property.  
    Public FieldThis is a GoObject.Changed subhint identifying changes to the value of the Background property.  
    Public FieldThis is a GoObject.Changed subhint identifying changes to the value of the BottomRightMargin property.  
    Public FieldThis is a GoObject.Changed subhint identifying changes to the value of the Icon property.  
    Public FieldThis is a GoObject.Changed subhint identifying changes to the value of the Label property.  
    Public FieldThis is a GoObject.Changed subhint identifying changes to the value of the TopLeftMargin property.  
    Top
    Public Properties
     NameDescription
    Public Property Gets or sets whether the button appears "depressed".  
    Public Property Gets or sets whether the user can click on this button to get it to perform an action.  
    Public PropertyGets or sets whether the button calls OnActionAdjusted repeatedly when the mouse remains down, after a delay.  
    Public Property Gets or sets whether this object automatically rescales its appearance when its size changes. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets the background object for this button.  
    Public Property Gets an enumerable whose enumerator will iterate over the group's child GoObjects in reverse order, starting with the last child, which is painted in front of all other children in the group. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets whether this object is in the process of being removed from its layer or group. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets this object's bottom coordinate. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets the amount of space to leave at the bottom and right sides between the icon and label and the edge of the background.  
    Public Property Gets or sets the bounding rectangle for this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets this object's center position. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets a Dictionary of name/child mappings in both directions. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets or sets whether the user can copy this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets the number of child objects in this group. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets or sets whether the user can delete this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets 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.Go.GoObject)
    Public Property Gets the object that will be dragged instead of this selected object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether this object, when selected and a child of a group, and when dragged, drags the parent node instead. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether the user can edit this object. (Inherited from Northwoods.Go.GoObject)
    Public PropertyGets the GoControl being used to edit this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets the first child object of this group. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets or sets this object's height. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets the icon object for this button.  
    Public Property Gets or sets whether this object is in the process of being initialized. (Inherited from Northwoods.Go.GoObject)
    Public Property This predicate is true when there are no objects in this group. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets whether this object belongs to a document. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets whether this object belongs to a view. (Inherited from Northwoods.Go.GoObject)
    Public PropertyImplement the ICollection of GoObject property. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets whether this object is a top-level object. (Inherited from Northwoods.Go.GoObject)
    Public PropertyOverloaded. This IList indexed property gets or sets the object at a position in the group's array of children. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets or sets the text label for this button.  
    Public Property Gets the last child object of this group. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets the layer to which this object belongs. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets this object's left coordinate, the X position. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets this object's natural position. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether the user can move this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets an enumerator over the list of observer objects of this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets the parent group for this object. (Inherited from Northwoods.Go.GoObject)
    Public PropertyThis convenience property gets the highest-level object in the GoObject.Parent chain that is not a GoSubGraphBase. (Inherited from Northwoods.Go.GoObject)
    Public PropertyGets or sets whether GoGroup.Pick returns this node when the tested point is in the background of this group, not on any of its child objects. (Inherited from Northwoods.Go.GoGroup)
    Public Property Gets or sets this object's top-left corner's position. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether the view can print this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether the user can reshape this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether the user can resize this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets 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.Go.GoObject)
    Public Property Gets or sets this object's right coordinate. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether the user can select this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets the object that gets selection handles when this object is selected. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether this object is painted with a drop shadow. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets this object's dimensions. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether the UndoManager is notified upon a change to this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets whether any document Changed event handlers are called upon a change to this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets the text string for this button.  
    Public Property Gets or sets this object's top coordinate, the Y position. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets the amount of space to leave at the top and left sides between the icon and label and the edge of the background.  
    Public Property Gets the top-level object for this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets 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.Go.GoObject)
    Public Property Gets or sets whether the user can see this object. (Inherited from Northwoods.Go.GoObject)
    Public Property Gets or sets this object's width. (Inherited from Northwoods.Go.GoObject)
    Top
    Protected Properties
     NameDescription
    Protected Property Gets or sets whether the bounds are up to date. (Inherited from Northwoods.Go.GoObject)
    Top
    Public Methods
     NameDescription
    Public Method Add an object to this group. (Inherited from Northwoods.Go.GoGroup)
    Public Method Add an association of a string name with a child object. (Inherited from Northwoods.Go.GoGroup)
    Public Method Move some objects into this group, as immediate children of this group, even if they are part of other groups in this same layer. (Inherited from Northwoods.Go.GoGroup)
    Public Method Register an object as an observer of changes to this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Add selection handles for this object for the given selection collection. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can copy this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can delete this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can edit this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can move this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the view can print this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can reshape this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can resize this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can select this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to see if the user can see this object. (Inherited from Northwoods.Go.GoObject)
    Public MethodNotify this object's document or view that some part of this object's state has been changed, via the GoDocument.GoDocument.Changed event and using the GoChangedEventArgs event args class. (Inherited from Northwoods.Go.GoObject)
    Public MethodOverridden.  Handle undo and redo changes.  
    Public Method Notify this object's document or view that some part of this object's state is about to be changed. (Inherited from Northwoods.Go.GoObject)
    Public Method Remove all children from this group. (Inherited from Northwoods.Go.GoGroup)
    Public Method Calculate a new location for this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Calculate a new bounding rectangle for this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Determine if a given rectangle completely encloses this object. (Inherited from Northwoods.Go.GoObject)
    Public Method This predicate is true when an object belongs to this group. (Inherited from Northwoods.Go.GoGroup)
    Public Method A group contains a point if any of its visible children contain that point. (Inherited from Northwoods.Go.GoGroup)
    Public MethodThis convenience method just makes a copy of the object itself, using a generic GoCopyDictionary. (Inherited from Northwoods.Go.GoObject)
    Public Method Returns a newly allocated array of all of the immediate child objects in this group. (Inherited from Northwoods.Go.GoGroup)
    Public MethodPreserve any mutable state needed to perform an IGoUndoableEdit.Redo. (Inherited from Northwoods.Go.GoObject)
    Public Method Produces a copy of this object within the given copy dictionary. (Inherited from Northwoods.Go.GoGroup)
    Public MethodFor 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 GoDocument.CopyFromCollection. (Inherited from Northwoods.Go.GoObject)
    Public MethodPreserve any mutable state needed to perform an IGoUndoableEdit.Undo. (Inherited from Northwoods.Go.GoObject)
    Public Method Copy references to this group's immediate children into the given array. (Inherited from Northwoods.Go.GoGroup)
    Public Method Create a bounding handle for this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Create a GoControl that implements an editor for this object in the given view. (Inherited from Northwoods.Go.GoObject)
    Public Method Create a resize handle for this object, given a handle ID. (Inherited from Northwoods.Go.GoObject)
    Public Method Start editing this object in the given view. (Inherited from Northwoods.Go.GoObject)
    Public Method Stop editing this object in the given view. (Inherited from Northwoods.Go.GoObject)
    Public Method Called when a user moves this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called when a user resizes this object. (Inherited from Northwoods.Go.GoObject)
    Public MethodOverridden.  Additional painted area includes part of the border giving 3D control appearance.  
    Public MethodOverridden.  The properties referring to parts of this node are also the names of those parts.  
    Public MethodOverridden.  The properties referring to parts of this node are also the names of those parts.  
    Public MethodCalled to get a GoContextMenu to display for this object. (Inherited from Northwoods.Go.GoObject)
    Public MethodCalled to get a ContextMenuStrip to display for this object. (Inherited from Northwoods.Go.GoObject)
    Public MethodCalled by GoObject.OnMouseOver to determine the cursor, if any, to display over this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Get an enumerator for iterating over the group's children, starting with the first child, which is painted behind all other children in the group. (Inherited from Northwoods.Go.GoGroup)
    Public Method A group's closest intersection point with a line is the closest such point among all of the visible children. (Inherited from Northwoods.Go.GoGroup)
    Public MethodReturn 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.Go.GoObject)
    Public Method Get the position of a spot in a rectangle. (Inherited from Northwoods.Go.GoObject)
    Public Method Get a Brush for painting a drop shadow in the given view. (Inherited from Northwoods.Go.GoObject)
    Public Method Gets the size of a drop shadow for this object in the given view. (Inherited from Northwoods.Go.GoObject)
    Public Method Get a Pen for painting a drop shadow in the given view. (Inherited from Northwoods.Go.GoObject)
    Public Method Get the position of a spot on this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called to get a String to display as a tooltip for this object. (Inherited from Northwoods.Go.GoObject)
    Public MethodProvide a GoObject-specific implementation of IndexOf. (Inherited from Northwoods.Go.GoGroup)
    Public MethodProvide a GoObject-specific implementation of Insert, which just calls GoGroup.Add or GoGroup.InsertBefore. (Inherited from Northwoods.Go.GoGroup)
    Public Method Add or move an object to be after an existing child. (Inherited from Northwoods.Go.GoGroup)
    Public Method Add or move an object to be before an existing child. (Inherited from Northwoods.Go.GoGroup)
    Public Method Cause all views to repaint this object when they get a chance. (Inherited from Northwoods.Go.GoObject)
    Public Method Determines if this object is a child, perhaps indirectly, of the given object. (Inherited from Northwoods.Go.GoObject)
    Public MethodOverridden. Position the Icon to the left of the Label, and surround both with the Background, leaving TopLeftMargin and BottomRightMargin space along the sides.  
    Public Method Call all of the Action event handlers.  
    Public MethodIf AutoRepeating is true, have the GoToolAction tool start calling OnActionAdjusted repeatedly while the mouse is down.  
    Public Method We don't care about any mouse movement over a button.  
    Public Method We don't care if pressing the button was cancelled.  
    Public Method Called when the user context clicks on this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called when the user double clicks on this object. (Inherited from Northwoods.Go.GoObject)
    Public MethodCalled when the document object immediately under the mouse changes as the mouse moves when no particular tool is running or when the GoToolDragging tool is running. (Inherited from Northwoods.Go.GoObject)
    Public Method Called when this object becomes selected. (Inherited from Northwoods.Go.GoObject)
    Public Method Called when the user hovers over this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called when this object becomes unselected. (Inherited from Northwoods.Go.GoObject)
    Public Method Called when the user moves the mouse over this object when not dragging or resizing. (Inherited from Northwoods.Go.GoObject)
    Public Method Called after the user has dropped the selection on this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Called 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.Go.GoObject)
    Public Method Called when the user single clicks on this object. (Inherited from Northwoods.Go.GoObject)
    Public MethodOverridden. Call PaintButton in addition to painting the Background, Label, and Icon.  
    Public Method Picking a group first tries to pick a child, starting with the last one which is most in front. (Inherited from Northwoods.Go.GoGroup)
    Public Method Return a collection of objects that can be picked at a particular point. (Inherited from Northwoods.Go.GoGroup)
    Public MethodOverloaded. Overridden.   
    Public MethodImplement the IList method, which just calls GoGroup.Remove. (Inherited from Northwoods.Go.GoGroup)
    Public MethodOverloaded.  (Inherited from Northwoods.Go.GoGroup)
    Public Method Make sure an object is not an observer of changes to this object. (Inherited from Northwoods.Go.GoObject)
    Public Method Remove all selection handles for this object for the given selection collection. (Inherited from Northwoods.Go.GoObject)
    Public Method Modify a rectangle such that its new spot location is at a given point. (Inherited from Northwoods.Go.GoObject)
    Public Method Sets a new size for this object while maintaining the same location. (Inherited from Northwoods.Go.GoObject)
    Public MethodOverloaded.  (Inherited from Northwoods.Go.GoObject)
    Public Method Get the spot that is on the opposite side of a given spot. (Inherited from Northwoods.Go.GoObject)
    Top
    Protected Methods
     NameDescription
    Protected Method The bounding rectangle of a group is just the union of the bounds of its children. (Inherited from Northwoods.Go.GoGroup)
    Protected MethodOverridden. Copy the Background, Label, and Icon.  
    Protected Method Make the background rectangle for the button.  
    Protected Method Make the icon for the button.  
    Protected Method Make the text label for the button.  
    Protected Method This just moves all the children from the group's former location. (Inherited from Northwoods.Go.GoGroup)
    Protected Method Provides default behavior, assuming all children are already correctly placed and sized, and only need to be moved and/or scaled to fit the new bounds of this GoGroup. (Inherited from Northwoods.Go.GoGroup)
    Protected Method Called when this object's layer is changed. (Inherited from Northwoods.Go.GoObject)
    Protected Method Called when an observed object has been changed. (Inherited from Northwoods.Go.GoObject)
    Protected Method Called when this object's parent is changed. (Inherited from Northwoods.Go.GoObject)
    Protected MethodThis method is called by Paint to display any button state, such as whether it is "pressed".  
    Protected Method This handles the general case of a resize by scaling and repositioning all the children. (Inherited from Northwoods.Go.GoGroup)
    Top
    Public Events
     NameDescription
    Public Event An Action event happens whenever the user clicks on this button.  
    Top
    See Also