Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Grid Class
 Grid Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Grid Members

Defines a flexible grid area that consists of columns and rows.

The Grid type exposes the following members.

  NameDescription
ms616551.pubmethod(en-us,VS.90).gifGrid Initializes a new instance of Grid.
Top
  NameDescription
ms616551.pubmethod(en-us,VS.90).gifAddHandlerOverloaded.
ms616551.protmethod(en-us,VS.90).gifAddLogicalChild Adds the provided object to the logical tree of this element. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifAddToEventRoute Adds handlers to the specified EventRoute for the current UIElement event handler collection. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifAddVisualChild Defines the parent-child relationship between two visuals. (Inherited from Visual.)
ms616551.pubmethod(en-us,VS.90).gifApplyAnimationClockOverloaded.
ms616551.pubmethod(en-us,VS.90).gifApplyTemplate Builds the current template's visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifArrange Positions child elements and determines a size for a UIElement. Parent elements call this method from their ArrangeCore implementation (or a WPF framework-level equivalent) to form a recursive layout update. This method constitutes the second pass of a layout update. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifArrangeCore Implements ArrangeCore (defined as virtual in UIElement) and seals the implementation. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifArrangeOverride Arranges the content of a Grid element. (Overrides FrameworkElement..::.ArrangeOverride(Size).)
ms616551.pubmethod(en-us,VS.90).gifBeginAnimationOverloaded.
ms616551.pubmethod(en-us,VS.90).gifBeginInit Starts the initialization process for this element. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifBeginStoryboardOverloaded.
ms616551.pubmethod(en-us,VS.90).gifBringIntoViewOverloaded.
ms616551.pubmethod(en-us,VS.90).gifCaptureMouse Attempts to force capture of the mouse to this element. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifCaptureStylus Attempts to force capture of the stylus to this element. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifCheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
ms616551.pubmethod(en-us,VS.90).gifClearValueOverloaded.
ms616551.pubmethod(en-us,VS.90).gifCoerceValue Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.)
ms616551.protmethod(en-us,VS.90).gifCreateUIElementCollection Creates a new UIElementCollection. (Inherited from Panel.)
ms616551.pubmethod(en-us,VS.90).gifEndInit Indicates that the initialization process for the element is complete. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifEquals Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
ms616551.protmethod(en-us,VS.90).gifFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
ms616551.pubmethod(en-us,VS.90).gifFindCommonVisualAncestor Returns the common ancestor of two visual objects. (Inherited from Visual.)
ms616551.pubmethod(en-us,VS.90).gifFindName Finds an element that has the provided identifier name. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifFindResource Searches for a resource with the specified key, and throws an exception if the requested resource is not found. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifFocus Attempts to set focus to this element. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifGetAnimationBaseValue Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifGetBindingExpression Returns the BindingExpression that represents the binding on the specified property. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifms616551.static(en-us,VS.90).gifGetColumn Gets the value of the Column attached property from a given UIElement.
ms616551.pubmethod(en-us,VS.90).gifms616551.static(en-us,VS.90).gifGetColumnSpan Gets the value of the ColumnSpan attached property from a given UIElement.
ms616551.pubmethod(en-us,VS.90).gifGetHashCode Gets a hash code for this DependencyObject. (Inherited from DependencyObject.)
ms616551.pubmethod(en-us,VS.90).gifms616551.static(en-us,VS.90).gifGetIsSharedSizeScope Gets the value of the IsSharedSizeScope attached property from a given UIElement.
ms616551.protmethod(en-us,VS.90).gifGetLayoutClip Returns a geometry for a clipping mask. The mask applies if the layout system attempts to arrange an element that is larger than the available display space. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifGetLocalValueEnumerator Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
ms616551.pubmethod(en-us,VS.90).gifms616551.static(en-us,VS.90).gifGetRow Gets the value of the Row attached property from a given UIElement.
ms616551.pubmethod(en-us,VS.90).gifms616551.static(en-us,VS.90).gifGetRowSpan Gets the value of the RowSpan attached property from a given UIElement.
ms616551.protmethod(en-us,VS.90).gifGetTemplateChild Do not use. Use FindName instead. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifGetType Gets the Type of the current instance. (Inherited from Object.)
ms616551.protmethod(en-us,VS.90).gifGetUIParentCore Returns an alternative logical parent for this element if there is no visual parent. (Inherited from FrameworkElement.)
ms616551.pubmethod(en-us,VS.90).gifGetValue Returns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
ms616551.protmethod(en-us,VS.90).gifGetVisualChild Gets the child Visual at the specified index position. (Overrides Panel..::.GetVisualChild(Int32).)
ms616551.protmethod(en-us,VS.90).gifHitTestCoreOverloaded.
ms616551.pubmethod(en-us,VS.90).gifInputHitTest Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifInvalidateArrange Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifInvalidateMeasure Invalidates the measurement state (layout) for the element. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifInvalidateProperty Re-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
ms616551.pubmethod(en-us,VS.90).gifInvalidateVisual Invalidates the rendering of the element, and forces a complete new layout pass. OnRender is called after the layout cycle is completed. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifIsAncestorOf Determines whether the visual object is an ancestor of the descendant visual object. (Inherited from Visual.)
ms616551.pubmethod(en-us,VS.90).gifIsDescendantOf Determines whether the visual object is a descendant of the ancestor visual object. (Inherited from Visual.)
ms616551.pubmethod(en-us,VS.90).gifMeasure Updates the DesiredSize of a UIElement. Parent elements call this method from their own MeasureCore implementations to form a recursive layout update. Calling this method constitutes the first pass (the "Measure" pass) of a layout update. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifMeasureCore Implements basic measure-pass layout system behavior for FrameworkElement. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifMeasureOverride Measures the children of a Grid in anticipation of arranging them during the ArrangeOverride pass. (Overrides FrameworkElement..::.MeasureOverride(Size).)
ms616551.protmethod(en-us,VS.90).gifMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
ms616551.pubmethod(en-us,VS.90).gifMoveFocus Moves the keyboard focus away from this element and to another element in a provided traversal direction. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifOnAccessKey Provides class handling for when an access key that is meaningful for this element is invoked. (Inherited from UIElement.)
ms616551.pubmethod(en-us,VS.90).gifOnApplyTemplate When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifOnChildDesiredSizeChanged Supports layout behavior when a child element is resized. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnContextMenuClosing Invoked whenever an unhandled ContextMenuClosing routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifOnContextMenuOpening Invoked whenever an unhandled ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifOnCreateAutomationPeer Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnDragEnter Invoked when an unhandled DragDrop..::.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnDragLeave Invoked when an unhandled DragDrop..::.DragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnDragOver Invoked when an unhandled DragDrop..::.DragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnDrop Invoked when an unhandled DragDrop..::.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnGiveFeedback Invoked when an unhandled DragDrop..::.GiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnGotFocus Invoked whenever an unhandled GotFocus event reaches this element in its route. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifOnGotKeyboardFocus Invoked when an unhandled Keyboard..::.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnGotMouseCapture Invoked when an unhandled Mouse..::.GotMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnGotStylusCapture Invoked when an unhandled Stylus..::.GotStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnInitialized Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally. (Inherited from FrameworkElement.)
ms616551.protmethod(en-us,VS.90).gifOnIsItemsHostChanged Indicates that the IsItemsHost property value has changed. (Inherited from Panel.)
ms616551.protmethod(en-us,VS.90).gifOnIsKeyboardFocusedChanged Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnIsKeyboardFocusWithinChanged Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnIsMouseCapturedChanged Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnIsMouseCaptureWithinChanged Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnIsMouseDirectlyOverChanged Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnIsStylusCapturedChanged Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gifOnIsStylusCaptureWithinChanged Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms616551.protmethod(en-us,VS.90).gif