Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1109 lines (1046 sloc) 68.3 KB
<Type Name="Grid" FullName="System.Windows.Controls.Grid">
<TypeSignature Language="C#" Value="public class Grid : System.Windows.Controls.Panel, System.Windows.Markup.IAddChild" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi Grid extends System.Windows.Controls.Panel implements class System.Windows.Markup.IAddChild" />
<TypeSignature Language="DocId" Value="T:System.Windows.Controls.Grid" />
<TypeSignature Language="VB.NET" Value="Public Class Grid&#xA;Inherits Panel&#xA;Implements IAddChild" />
<TypeSignature Language="C++ CLI" Value="public ref class Grid : System::Windows::Controls::Panel, System::Windows::Markup::IAddChild" />
<TypeSignature Language="F#" Value="type Grid = class&#xA; inherit Panel&#xA; interface IAddChild" />
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Controls.Panel</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Windows.Markup.IAddChild</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Defines a flexible grid area that consists of columns and rows.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A <xref:System.Windows.Controls.Grid> contains a collection of <xref:System.Windows.UIElement> objects, which are in the <xref:System.Windows.Controls.Panel.Children%2A> property.
Columns and rows that are defined within a <xref:System.Windows.Controls.Grid> can take advantage of <xref:System.Windows.GridUnitType.Star> sizing to distribute remaining space proportionally. When <xref:System.Windows.GridUnitType.Star> is selected as the height or width of a row or column, that column or row receives a weighted proportion of the remaining available space. This is in contrast to <xref:System.Windows.GridUnitType.Auto>, which distributes space evenly based on the size of the content that is within a column or row. This value is expressed as `*` or `2*` when you use [!INCLUDE[TLA#tla_xaml](~/includes/tlasharptla-xaml-md.md)]. In the first case, the row or column would receive one times the available space, while in the second case, the row or column would receive two times the available space, and so on. By combining this technique to proportionally distribute space with a <xref:System.Windows.FrameworkElement.HorizontalAlignment%2A> and <xref:System.Windows.FrameworkElement.VerticalAlignment%2A> value of `Stretch`, it is possible to partition layout space by percentage of screen space. <xref:System.Windows.Controls.Grid> is the only layout panel that can distribute space in this manner.
By default, rows and columns take up the least amount of space necessary to accommodate the largest content within any cell contained in a given row or column. For example, if a column has one cell with a long word like "hippopotamus" contained within it but all the other cells in the column have smaller words like "dog", the width of the column will be the width of the largest word (hippopotamus).
You can precisely position child elements of a <xref:System.Windows.Controls.Grid> by using a combination of the <xref:System.Windows.FrameworkElement.Margin%2A> property and alignment properties.
Child elements of a <xref:System.Windows.Controls.Grid> are drawn in the order in which they appear in markup or code. As a consequence, layered order (also known as z-order) can be achieved when elements share the same coordinates.
<xref:System.Windows.Controls.Grid> and <xref:System.Windows.Documents.Table> share some common functionality, but each can be applied in appropriate scenarios to better use its built-in features. <xref:System.Windows.Controls.Grid> adds elements based on a row and column index; <xref:System.Windows.Documents.Table> does not. The <xref:System.Windows.Controls.Grid> element allows layering of content, where more than one element can exist within a single cell. <xref:System.Windows.Documents.Table> does not support layering. Child elements of a <xref:System.Windows.Controls.Grid> can be absolutely positioned relative to the upper-left corner of their "cell" boundaries. <xref:System.Windows.Documents.Table> does not support this feature. <xref:System.Windows.Controls.Grid> also offers more flexible resizing behavior than <xref:System.Windows.Documents.Table>.
<xref:System.Windows.Controls.Grid> uses the <xref:System.Windows.GridLength> object to define the sizing characteristics of a <xref:System.Windows.Controls.RowDefinition> or <xref:System.Windows.Controls.ColumnDefinition>. For a definition of each unit type, see <xref:System.Windows.GridUnitType>.
If a child element is added to a column within a <xref:System.Windows.Controls.Grid>, and the column has its <xref:System.Windows.Controls.ColumnDefinition.Width%2A> property set to `Auto`, the child will be measured without restrictions. This behavior can prevent horizontal scroll bars from displaying if a <xref:System.Windows.Controls.ScrollViewer> is being used, as the child element is measured as unbounded. For purposes of display, the child is clipped rather than scrolled.
Panel elements do not receive focus by default. To compel a panel element to receive focus, set the <xref:System.Windows.UIElement.Focusable%2A> property to `true`.
## Examples
The following example demonstrates how to create a grid. In this case, the grid defines three <xref:System.Windows.Controls.ColumnDefinition> elements and four <xref:System.Windows.Controls.RowDefinition> elements that host child content.
[!code-csharp[Grid#3](~/samples/snippets/csharp/VS_Snippets_Wpf/Grid/CSharp/Grid_Code.cs#3)]
[!code-vb[Grid#3](~/samples/snippets/visualbasic/VS_Snippets_Wpf/Grid/VisualBasic/grid_vb.vb#3)]
[!code-xaml[Grid#3](~/samples/snippets/xaml/VS_Snippets_Wpf/Grid/XAML/default.xaml#3)]
]]></format>
</remarks>
<altmember cref="T:System.Windows.Documents.Table" />
<altmember cref="T:System.Windows.GridUnitType" />
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160053">WPF Controls Gallery Sample</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Grid ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; Grid();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of <see cref="T:System.Windows.Controls.Grid" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ArrangeOverride">
<MemberSignature Language="C#" Value="protected override System.Windows.Size ArrangeOverride (System.Windows.Size arrangeSize);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance valuetype System.Windows.Size ArrangeOverride(valuetype System.Windows.Size arrangeSize) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function ArrangeOverride (arrangeSize As Size) As Size" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Size ArrangeOverride(System::Windows::Size arrangeSize);" />
<MemberSignature Language="F#" Value="override this.ArrangeOverride : System.Windows.Size -&gt; System.Windows.Size" Usage="grid.ArrangeOverride arrangeSize" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Size</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="arrangeSize" Type="System.Windows.Size" />
</Parameters>
<Docs>
<param name="arrangeSize">Specifies the size this <see cref="T:System.Windows.Controls.Grid" /> element should use to arrange its child elements.</param>
<summary>Arranges the content of a <see cref="T:System.Windows.Controls.Grid" /> element.</summary>
<returns>
<see cref="T:System.Windows.Size" /> that represents the arranged size of this Grid element and its children.</returns>
<remarks>To be added.</remarks>
<altmember cref="M:System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)" />
</Docs>
</Member>
<Member MemberName="Column">
<MemberSignature Language="C#" Value="see GetColumn, and SetColumn" />
<MemberSignature Language="ILAsm" Value="see GetColumn, and SetColumn" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.Column" />
<MemberSignature Language="VB.NET" Value="see GetColumn, and SetColumn" />
<MemberSignature Language="F#" Value="see GetColumn, and SetColumn" Usage="see GetColumn, and SetColumn" />
<MemberType>AttachedProperty</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Gets or sets a value that indicates which column child content within a <see cref="T:System.Windows.Controls.Grid" /> should appear in.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Columns in a <xref:System.Windows.Controls.Grid> are defined using the <xref:System.Windows.Controls.ColumnDefinition> element.
<a name="dependencyPropertyInfo_Column"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Grid.ColumnProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ColumnDefinitions">
<MemberSignature Language="C#" Value="public System.Windows.Controls.ColumnDefinitionCollection ColumnDefinitions { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Controls.ColumnDefinitionCollection ColumnDefinitions" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.ColumnDefinitions" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ColumnDefinitions As ColumnDefinitionCollection" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Controls::ColumnDefinitionCollection ^ ColumnDefinitions { System::Windows::Controls::ColumnDefinitionCollection ^ get(); };" />
<MemberSignature Language="F#" Value="member this.ColumnDefinitions : System.Windows.Controls.ColumnDefinitionCollection" Usage="System.Windows.Controls.Grid.ColumnDefinitions" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Controls.ColumnDefinitionCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a <see cref="T:System.Windows.Controls.ColumnDefinitionCollection" /> defined on this instance of <see cref="T:System.Windows.Controls.Grid" />.</summary>
<value>A <see cref="T:System.Windows.Controls.ColumnDefinitionCollection" /> defined on this instance of <see cref="T:System.Windows.Controls.Grid" /></value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="xamlPropertyElementUsage_ColumnDefinitions"></a>
## XAML Property Element Usage
```
<object>
<object.ColumnDefinitions>
OneOrMoreColumnDefinitions
</object.ColumnDefinitions>
</object>
```
<a name="xamlValues_ColumnDefinitions"></a>
## XAML Values
*OneOrMoreColumnDefinitions*
One or more <xref:System.Windows.Controls.ColumnDefinition> elements. Each such <xref:System.Windows.Controls.ColumnDefinition> becomes a placeholder representing a column in the final grid layout.
]]></format>
</remarks>
<altmember cref="P:System.Windows.Controls.Grid.RowDefinitions" />
</Docs>
</Member>
<Member MemberName="ColumnProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty ColumnProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty ColumnProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Grid.ColumnProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ColumnProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ ColumnProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable ColumnProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.Grid.ColumnProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.Grid.Column" /> attached property.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.Column" />
</Docs>
</Member>
<Member MemberName="ColumnSpan">
<MemberSignature Language="C#" Value="see GetColumnSpan, and SetColumnSpan" />
<MemberSignature Language="ILAsm" Value="see GetColumnSpan, and SetColumnSpan" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.ColumnSpan" />
<MemberSignature Language="VB.NET" Value="see GetColumnSpan, and SetColumnSpan" />
<MemberSignature Language="F#" Value="see GetColumnSpan, and SetColumnSpan" Usage="see GetColumnSpan, and SetColumnSpan" />
<MemberType>AttachedProperty</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Gets or sets a value that indicates the total number of columns that child content spans within a <see cref="T:System.Windows.Controls.Grid" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Columns in a <xref:System.Windows.Controls.Grid> are defined using the <xref:System.Windows.Controls.ColumnDefinition> element.
<a name="dependencyPropertyInfo_ColumnSpan"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Grid.ColumnSpanProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ColumnSpanProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty ColumnSpanProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty ColumnSpanProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Grid.ColumnSpanProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ColumnSpanProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ ColumnSpanProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable ColumnSpanProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.Grid.ColumnSpanProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.Grid.ColumnSpan" /> attached property.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.ColumnSpan" />
</Docs>
</Member>
<Member MemberName="GetColumn">
<MemberSignature Language="C#" Value="public static int GetColumn (System.Windows.UIElement element);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetColumn(class System.Windows.UIElement element) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.GetColumn(System.Windows.UIElement)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetColumn (element As UIElement) As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static int GetColumn(System::Windows::UIElement ^ element);" />
<MemberSignature Language="F#" Value="static member GetColumn : System.Windows.UIElement -&gt; int" Usage="System.Windows.Controls.Grid.GetColumn element" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Windows.AttachedPropertyBrowsableForChildren</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
</Parameters>
<Docs>
<param name="element">The element from which to read the property value.</param>
<summary>Gets the value of the <see cref="P:System.Windows.Controls.Grid.Column" /> attached property from a given <see cref="T:System.Windows.UIElement" />.</summary>
<returns>The value of the <see cref="P:System.Windows.Controls.Grid.Column" /> attached property.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetColumnSpan">
<MemberSignature Language="C#" Value="public static int GetColumnSpan (System.Windows.UIElement element);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetColumnSpan(class System.Windows.UIElement element) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.GetColumnSpan(System.Windows.UIElement)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetColumnSpan (element As UIElement) As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static int GetColumnSpan(System::Windows::UIElement ^ element);" />
<MemberSignature Language="F#" Value="static member GetColumnSpan : System.Windows.UIElement -&gt; int" Usage="System.Windows.Controls.Grid.GetColumnSpan element" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Windows.AttachedPropertyBrowsableForChildren</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
</Parameters>
<Docs>
<param name="element">The element from which to read the property value.</param>
<summary>Gets the value of the <see cref="P:System.Windows.Controls.Grid.ColumnSpan" /> attached property from a given <see cref="T:System.Windows.UIElement" />.</summary>
<returns>The value of the <see cref="P:System.Windows.Controls.Grid.ColumnSpan" /> attached property.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetIsSharedSizeScope">
<MemberSignature Language="C#" Value="public static bool GetIsSharedSizeScope (System.Windows.UIElement element);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool GetIsSharedSizeScope(class System.Windows.UIElement element) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.GetIsSharedSizeScope(System.Windows.UIElement)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetIsSharedSizeScope (element As UIElement) As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static bool GetIsSharedSizeScope(System::Windows::UIElement ^ element);" />
<MemberSignature Language="F#" Value="static member GetIsSharedSizeScope : System.Windows.UIElement -&gt; bool" Usage="System.Windows.Controls.Grid.GetIsSharedSizeScope element" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
</Parameters>
<Docs>
<param name="element">The element from which to read the property value.</param>
<summary>Gets the value of the <see cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" /> attached property from a given <see cref="T:System.Windows.UIElement" />.</summary>
<returns>The value of the <see cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" /> attached property.</returns>
<remarks>To be added.</remarks>
<altmember cref="T:System.Windows.Controls.Grid" />
<altmember cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" />
</Docs>
</Member>
<Member MemberName="GetRow">
<MemberSignature Language="C#" Value="public static int GetRow (System.Windows.UIElement element);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetRow(class System.Windows.UIElement element) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.GetRow(System.Windows.UIElement)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetRow (element As UIElement) As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static int GetRow(System::Windows::UIElement ^ element);" />
<MemberSignature Language="F#" Value="static member GetRow : System.Windows.UIElement -&gt; int" Usage="System.Windows.Controls.Grid.GetRow element" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Windows.AttachedPropertyBrowsableForChildren</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
</Parameters>
<Docs>
<param name="element">The element from which to read the property value.</param>
<summary>Gets the value of the <see cref="P:System.Windows.Controls.Grid.Row" /> attached property from a given <see cref="T:System.Windows.UIElement" />.</summary>
<returns>The value of the <see cref="P:System.Windows.Controls.Grid.Row" /> attached property.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetRowSpan">
<MemberSignature Language="C#" Value="public static int GetRowSpan (System.Windows.UIElement element);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetRowSpan(class System.Windows.UIElement element) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.GetRowSpan(System.Windows.UIElement)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetRowSpan (element As UIElement) As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static int GetRowSpan(System::Windows::UIElement ^ element);" />
<MemberSignature Language="F#" Value="static member GetRowSpan : System.Windows.UIElement -&gt; int" Usage="System.Windows.Controls.Grid.GetRowSpan element" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Windows.AttachedPropertyBrowsableForChildren</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
</Parameters>
<Docs>
<param name="element">The element from which to read the property value.</param>
<summary>Gets the value of the <see cref="P:System.Windows.Controls.Grid.RowSpan" /> attached property from a given <see cref="T:System.Windows.UIElement" />.</summary>
<returns>The value of the <see cref="P:System.Windows.Controls.Grid.RowSpan" /> attached property.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetVisualChild">
<MemberSignature Language="C#" Value="protected override System.Windows.Media.Visual GetVisualChild (int index);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Windows.Media.Visual GetVisualChild(int32 index) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.GetVisualChild(System.Int32)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function GetVisualChild (index As Integer) As Visual" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Media::Visual ^ GetVisualChild(int index);" />
<MemberSignature Language="F#" Value="override this.GetVisualChild : int -&gt; System.Windows.Media.Visual" Usage="grid.GetVisualChild index" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Media.Visual</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="index" Type="System.Int32" />
</Parameters>
<Docs>
<param name="index">The zero-based index position of the desired <see cref="T:System.Windows.Media.Visual" />.</param>
<summary>Gets the child <see cref="T:System.Windows.Media.Visual" /> at the specified <paramref name="index" /> position.</summary>
<returns>The child <see cref="T:System.Windows.Media.Visual" /> at the specified <paramref name="index" /> position.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The visual tree must not be modified while this method is called.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="IsSharedSizeScope">
<MemberSignature Language="C#" Value="see GetIsSharedSizeScope, and SetIsSharedSizeScope" />
<MemberSignature Language="ILAsm" Value="see GetIsSharedSizeScope, and SetIsSharedSizeScope" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.IsSharedSizeScope" />
<MemberSignature Language="VB.NET" Value="see GetIsSharedSizeScope, and SetIsSharedSizeScope" />
<MemberSignature Language="F#" Value="see GetIsSharedSizeScope, and SetIsSharedSizeScope" Usage="see GetIsSharedSizeScope, and SetIsSharedSizeScope" />
<MemberType>AttachedProperty</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Gets or sets a value that indicates that multiple <see cref="T:System.Windows.Controls.Grid" /> elements are sharing size information.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Columns and rows participating in size sharing do not respect <xref:System.Windows.GridUnitType.Star> sizing. In this scenario, <xref:System.Windows.GridUnitType.Star> sizing is treated as <xref:System.Windows.GridUnitType.Auto>.
Grid size sharing does not work if <xref:System.Windows.Controls.Grid.IsSharedSizeScope%2A> is set to `true` within a resource template, and a <xref:System.Windows.Controls.DefinitionBase.SharedSizeGroup%2A> is defined outside of that template.
<a name="dependencyPropertyInfo_IsSharedSizeScope"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Grid.IsSharedSizeScopeProperty>|
|Metadata properties set to `true`|None|
## Examples
The following code examples demonstrate how to use the <xref:System.Windows.Controls.Grid.IsSharedSizeScope%2A> property in [!INCLUDE[TLA#tla_xaml](~/includes/tlasharptla-xaml-md.md)] and code.
[!code-xml[gridIssharedsizescopeProp#1](~/samples/snippets/csharp/VS_Snippets_Wpf/gridIssharedsizescopeProp/CSharp/Window1.xaml#1)]
...
[!code-xml[gridIssharedsizescopeProp#2](~/samples/snippets/csharp/VS_Snippets_Wpf/gridIssharedsizescopeProp/CSharp/Window1.xaml#2)]
...
Events defined in [!INCLUDE[TLA#tla_xaml](~/includes/tlasharptla-xaml-md.md)] are handled using code.
[!code-csharp[gridIssharedsizescopeProp#3](~/samples/snippets/csharp/VS_Snippets_Wpf/gridIssharedsizescopeProp/CSharp/Window1.xaml.cs#3)]
[!code-vb[gridIssharedsizescopeProp#3](~/samples/snippets/visualbasic/VS_Snippets_Wpf/gridIssharedsizescopeProp/VisualBasic/Window1.xaml.vb#3)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="IsSharedSizeScopeProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty IsSharedSizeScopeProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty IsSharedSizeScopeProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Grid.IsSharedSizeScopeProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly IsSharedSizeScopeProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ IsSharedSizeScopeProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable IsSharedSizeScopeProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.Grid.IsSharedSizeScopeProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" /> attached property.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" />
</Docs>
</Member>
<Member MemberName="LogicalChildren">
<MemberSignature Language="C#" Value="protected internal override System.Collections.IEnumerator LogicalChildren { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.IEnumerator LogicalChildren" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.LogicalChildren" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides ReadOnly Property LogicalChildren As IEnumerator" />
<MemberSignature Language="C++ CLI" Value="protected public:&#xA; virtual property System::Collections::IEnumerator ^ LogicalChildren { System::Collections::IEnumerator ^ get(); };" />
<MemberSignature Language="F#" Value="member this.LogicalChildren : System.Collections.IEnumerator" Usage="System.Windows.Controls.Grid.LogicalChildren" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.IEnumerator</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets an enumerator that can iterate the logical children of this <see cref="T:System.Windows.Controls.Grid" />.</summary>
<value>An <see cref="T:System.Collections.IEnumerator" />. This property has no default value.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MeasureOverride">
<MemberSignature Language="C#" Value="protected override System.Windows.Size MeasureOverride (System.Windows.Size constraint);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance valuetype System.Windows.Size MeasureOverride(valuetype System.Windows.Size constraint) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function MeasureOverride (constraint As Size) As Size" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Size MeasureOverride(System::Windows::Size constraint);" />
<MemberSignature Language="F#" Value="override this.MeasureOverride : System.Windows.Size -&gt; System.Windows.Size" Usage="grid.MeasureOverride constraint" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Size</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="constraint" Type="System.Windows.Size" />
</Parameters>
<Docs>
<param name="constraint">Indicates an upper limit size that should not be exceeded.</param>
<summary>Measures the children of a <see cref="T:System.Windows.Controls.Grid" /> in anticipation of arranging them during the <see cref="M:System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size)" /> pass.</summary>
<returns>
<see cref="T:System.Windows.Size" /> that represents the required size to arrange child content.</returns>
<remarks>To be added.</remarks>
<altmember cref="M:System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size)" />
</Docs>
</Member>
<Member MemberName="OnVisualChildrenChanged">
<MemberSignature Language="C#" Value="protected internal override void OnVisualChildrenChanged (System.Windows.DependencyObject visualAdded, System.Windows.DependencyObject visualRemoved);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void OnVisualChildrenChanged(class System.Windows.DependencyObject visualAdded, class System.Windows.DependencyObject visualRemoved) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.OnVisualChildrenChanged(System.Windows.DependencyObject,System.Windows.DependencyObject)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub OnVisualChildrenChanged (visualAdded As DependencyObject, visualRemoved As DependencyObject)" />
<MemberSignature Language="C++ CLI" Value="protected public:&#xA; override void OnVisualChildrenChanged(System::Windows::DependencyObject ^ visualAdded, System::Windows::DependencyObject ^ visualRemoved);" />
<MemberSignature Language="F#" Value="override this.OnVisualChildrenChanged : System.Windows.DependencyObject * System.Windows.DependencyObject -&gt; unit" Usage="grid.OnVisualChildrenChanged (visualAdded, visualRemoved)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="visualAdded" Type="System.Windows.DependencyObject" />
<Parameter Name="visualRemoved" Type="System.Windows.DependencyObject" />
</Parameters>
<Docs>
<param name="visualAdded">Identifies the visual child that's added.</param>
<param name="visualRemoved">Identifies the visual child that's removed.</param>
<summary>Called when the visual children of a <see cref="T:System.Windows.Controls.Grid" /> element change.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Row">
<MemberSignature Language="C#" Value="see GetRow, and SetRow" />
<MemberSignature Language="ILAsm" Value="see GetRow, and SetRow" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.Row" />
<MemberSignature Language="VB.NET" Value="see GetRow, and SetRow" />
<MemberSignature Language="F#" Value="see GetRow, and SetRow" Usage="see GetRow, and SetRow" />
<MemberType>AttachedProperty</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Gets or sets a value that indicates which row child content within a <see cref="T:System.Windows.Controls.Grid" /> should appear in.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Rows in a <xref:System.Windows.Controls.Grid> are defined using the <xref:System.Windows.Controls.RowDefinition> element.
<a name="dependencyPropertyInfo_Row"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Grid.RowProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="RowDefinitions">
<MemberSignature Language="C#" Value="public System.Windows.Controls.RowDefinitionCollection RowDefinitions { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Controls.RowDefinitionCollection RowDefinitions" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.RowDefinitions" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property RowDefinitions As RowDefinitionCollection" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Controls::RowDefinitionCollection ^ RowDefinitions { System::Windows::Controls::RowDefinitionCollection ^ get(); };" />
<MemberSignature Language="F#" Value="member this.RowDefinitions : System.Windows.Controls.RowDefinitionCollection" Usage="System.Windows.Controls.Grid.RowDefinitions" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Controls.RowDefinitionCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a <see cref="T:System.Windows.Controls.RowDefinitionCollection" /> defined on this instance of <see cref="T:System.Windows.Controls.Grid" />.</summary>
<value>A <see cref="T:System.Windows.Controls.RowDefinitionCollection" /> defined on this instance of <see cref="T:System.Windows.Controls.Grid" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="xamlPropertyElementUsage_RowDefinitions"></a>
## XAML Property Element Usage
```
<object>
<object.RowDefinitions>
OneOrMoreRowDefinitions
</object.RowDefinitions>
</object>
```
<a name="xamlValues_RowDefinitions"></a>
## XAML Values
*OneOrMoreRowDefinitions*
One or more <xref:System.Windows.Controls.RowDefinition> elements. Each such <xref:System.Windows.Controls.RowDefinition> becomes a placeholder representing a row in the final grid layout.
]]></format>
</remarks>
<altmember cref="P:System.Windows.Controls.Grid.RowDefinitions" />
</Docs>
</Member>
<Member MemberName="RowProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty RowProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty RowProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Grid.RowProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly RowProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ RowProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable RowProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.Grid.RowProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.Grid.Row" /> attached property.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.Row" />
</Docs>
</Member>
<Member MemberName="RowSpan">
<MemberSignature Language="C#" Value="see GetRowSpan, and SetRowSpan" />
<MemberSignature Language="ILAsm" Value="see GetRowSpan, and SetRowSpan" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.RowSpan" />
<MemberSignature Language="VB.NET" Value="see GetRowSpan, and SetRowSpan" />
<MemberSignature Language="F#" Value="see GetRowSpan, and SetRowSpan" Usage="see GetRowSpan, and SetRowSpan" />
<MemberType>AttachedProperty</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Gets or sets a value that indicates the total number of rows that child content spans within a <see cref="T:System.Windows.Controls.Grid" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Rows in a <xref:System.Windows.Controls.Grid> are defined using the <xref:System.Windows.Controls.RowDefinition> element.
<a name="dependencyPropertyInfo_RowSpan"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Grid.RowSpanProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="RowSpanProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty RowSpanProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty RowSpanProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Grid.RowSpanProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly RowSpanProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ RowSpanProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable RowSpanProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.Grid.RowSpanProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.Grid.RowSpan" /> attached property.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.RowSpan" />
</Docs>
</Member>
<Member MemberName="SetColumn">
<MemberSignature Language="C#" Value="public static void SetColumn (System.Windows.UIElement element, int value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetColumn(class System.Windows.UIElement element, int32 value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.SetColumn(System.Windows.UIElement,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub SetColumn (element As UIElement, value As Integer)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static void SetColumn(System::Windows::UIElement ^ element, int value);" />
<MemberSignature Language="F#" Value="static member SetColumn : System.Windows.UIElement * int -&gt; unit" Usage="System.Windows.Controls.Grid.SetColumn (element, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<param name="element">The element on which to set the <see cref="P:System.Windows.Controls.Grid.Column" /> attached property.</param>
<param name="value">The property value to set.</param>
<summary>Sets the value of the <see cref="P:System.Windows.Controls.Grid.Column" /> attached property to a given <see cref="T:System.Windows.UIElement" />.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.Column" />
</Docs>
</Member>
<Member MemberName="SetColumnSpan">
<MemberSignature Language="C#" Value="public static void SetColumnSpan (System.Windows.UIElement element, int value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetColumnSpan(class System.Windows.UIElement element, int32 value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.SetColumnSpan(System.Windows.UIElement,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub SetColumnSpan (element As UIElement, value As Integer)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static void SetColumnSpan(System::Windows::UIElement ^ element, int value);" />
<MemberSignature Language="F#" Value="static member SetColumnSpan : System.Windows.UIElement * int -&gt; unit" Usage="System.Windows.Controls.Grid.SetColumnSpan (element, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<param name="element">The element on which to set the <see cref="P:System.Windows.Controls.Grid.ColumnSpan" /> attached property.</param>
<param name="value">The property value to set.</param>
<summary>Sets the value of the <see cref="P:System.Windows.Controls.Grid.ColumnSpan" /> attached property to a given <see cref="T:System.Windows.UIElement" />.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.ColumnSpan" />
</Docs>
</Member>
<Member MemberName="SetIsSharedSizeScope">
<MemberSignature Language="C#" Value="public static void SetIsSharedSizeScope (System.Windows.UIElement element, bool value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetIsSharedSizeScope(class System.Windows.UIElement element, bool value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.SetIsSharedSizeScope(System.Windows.UIElement,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub SetIsSharedSizeScope (element As UIElement, value As Boolean)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static void SetIsSharedSizeScope(System::Windows::UIElement ^ element, bool value);" />
<MemberSignature Language="F#" Value="static member SetIsSharedSizeScope : System.Windows.UIElement * bool -&gt; unit" Usage="System.Windows.Controls.Grid.SetIsSharedSizeScope (element, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
<Parameter Name="value" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="element">The element on which to set the <see cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" /> attached property.</param>
<param name="value">The property value to set.</param>
<summary>Sets the value of the <see cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" /> attached property to a given <see cref="T:System.Windows.UIElement" />.</summary>
<remarks>To be added.</remarks>
<altmember cref="T:System.Windows.Controls.Grid" />
<altmember cref="P:System.Windows.Controls.Grid.IsSharedSizeScope" />
</Docs>
</Member>
<Member MemberName="SetRow">
<MemberSignature Language="C#" Value="public static void SetRow (System.Windows.UIElement element, int value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetRow(class System.Windows.UIElement element, int32 value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.SetRow(System.Windows.UIElement,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub SetRow (element As UIElement, value As Integer)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static void SetRow(System::Windows::UIElement ^ element, int value);" />
<MemberSignature Language="F#" Value="static member SetRow : System.Windows.UIElement * int -&gt; unit" Usage="System.Windows.Controls.Grid.SetRow (element, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<param name="element">The element on which to set the attached property.</param>
<param name="value">The property value to set.</param>
<summary>Sets the value of the <see cref="P:System.Windows.Controls.Grid.Row" /> attached property to a given <see cref="T:System.Windows.UIElement" />.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.Row" />
</Docs>
</Member>
<Member MemberName="SetRowSpan">
<MemberSignature Language="C#" Value="public static void SetRowSpan (System.Windows.UIElement element, int value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetRowSpan(class System.Windows.UIElement element, int32 value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.SetRowSpan(System.Windows.UIElement,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub SetRowSpan (element As UIElement, value As Integer)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static void SetRowSpan(System::Windows::UIElement ^ element, int value);" />
<MemberSignature Language="F#" Value="static member SetRowSpan : System.Windows.UIElement * int -&gt; unit" Usage="System.Windows.Controls.Grid.SetRowSpan (element, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="element" Type="System.Windows.UIElement" />
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<param name="element">The element on which to set the <see cref="P:System.Windows.Controls.Grid.RowSpan" /> attached property.</param>
<param name="value">The property value to set.</param>
<summary>Sets the value of the <see cref="P:System.Windows.Controls.Grid.RowSpan" /> attached property to a given <see cref="T:System.Windows.UIElement" />.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.RowSpan" />
</Docs>
</Member>
<Member MemberName="ShouldSerializeColumnDefinitions">
<MemberSignature Language="C#" Value="public bool ShouldSerializeColumnDefinitions ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool ShouldSerializeColumnDefinitions() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.ShouldSerializeColumnDefinitions" />
<MemberSignature Language="VB.NET" Value="Public Function ShouldSerializeColumnDefinitions () As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; bool ShouldSerializeColumnDefinitions();" />
<MemberSignature Language="F#" Value="member this.ShouldSerializeColumnDefinitions : unit -&gt; bool" Usage="grid.ShouldSerializeColumnDefinitions " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns true if <see cref="T:System.Windows.Controls.ColumnDefinitionCollection" /> associated with this instance of <see cref="T:System.Windows.Controls.Grid" /> is not empty.</summary>
<returns>true if <see cref="T:System.Windows.Controls.ColumnDefinitionCollection" /> associated with this instance of <see cref="T:System.Windows.Controls.Grid" /> is not empty; otherwise, false.</returns>
<remarks>To be added.</remarks>
<altmember cref="T:System.Windows.Controls.ColumnDefinitionCollection" />
</Docs>
</Member>
<Member MemberName="ShouldSerializeRowDefinitions">
<MemberSignature Language="C#" Value="public bool ShouldSerializeRowDefinitions ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool ShouldSerializeRowDefinitions() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.ShouldSerializeRowDefinitions" />
<MemberSignature Language="VB.NET" Value="Public Function ShouldSerializeRowDefinitions () As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; bool ShouldSerializeRowDefinitions();" />
<MemberSignature Language="F#" Value="member this.ShouldSerializeRowDefinitions : unit -&gt; bool" Usage="grid.ShouldSerializeRowDefinitions " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns true if <see cref="T:System.Windows.Controls.RowDefinitionCollection" /> associated with this instance of <see cref="T:System.Windows.Controls.Grid" /> is not empty.</summary>
<returns>true if <see cref="T:System.Windows.Controls.RowDefinitionCollection" /> associated with this instance of <see cref="T:System.Windows.Controls.Grid" /> is not empty; otherwise, false.</returns>
<remarks>To be added.</remarks>
<altmember cref="T:System.Windows.Controls.RowDefinitionCollection" />
</Docs>
</Member>
<Member MemberName="ShowGridLines">
<MemberSignature Language="C#" Value="public bool ShowGridLines { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool ShowGridLines" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.ShowGridLines" />
<MemberSignature Language="VB.NET" Value="Public Property ShowGridLines As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool ShowGridLines { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.ShowGridLines : bool with get, set" Usage="System.Windows.Controls.Grid.ShowGridLines" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value that indicates whether grid lines are visible within this <see cref="T:System.Windows.Controls.Grid" />.</summary>
<value>
<see langword="true" /> if grid lines are visible; otherwise, <see langword="false" />. The default value is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Enabling grid lines creates dotted lines around all the elements within a <xref:System.Windows.Controls.Grid>. Only dotted lines are available because this property is intended as a design tool to debug layout problems and is not intended for use in production quality code. If you want lines inside a <xref:System.Windows.Controls.Grid>, style the elements within the <xref:System.Windows.Controls.Grid> to have borders.
<a name="dependencyPropertyInfo_ShowGridLines"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Grid.ShowGridLinesProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ShowGridLinesProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty ShowGridLinesProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty ShowGridLinesProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Grid.ShowGridLinesProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ShowGridLinesProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ ShowGridLinesProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable ShowGridLinesProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.Grid.ShowGridLinesProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.Grid.ShowGridLines" /> dependency property.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.Grid.ShowGridLines" />
</Docs>
</Member>
<Member MemberName="System.Windows.Markup.IAddChild.AddChild">
<MemberSignature Language="C#" Value="void IAddChild.AddChild (object value);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Windows.Markup.IAddChild.AddChild(object value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.System#Windows#Markup#IAddChild#AddChild(System.Object)" />
<MemberSignature Language="VB.NET" Value="Sub AddChild (value As Object) Implements IAddChild.AddChild" />
<MemberSignature Language="C++ CLI" Value=" virtual void System.Windows.Markup.IAddChild.AddChild(System::Object ^ value) = System::Windows::Markup::IAddChild::AddChild;" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Windows.Markup.IAddChild.AddChild(System.Object)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<param name="value">An object to add as a child.</param>
<summary>This type or member supports the [!INCLUDE[TLA#tla_winclient](~/includes/tlasharptla-winclient-md.md)] infrastructure and is not intended to be used directly from your code.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="System.Windows.Markup.IAddChild.AddText">
<MemberSignature Language="C#" Value="void IAddChild.AddText (string text);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Windows.Markup.IAddChild.AddText(string text) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Grid.System#Windows#Markup#IAddChild#AddText(System.String)" />
<MemberSignature Language="VB.NET" Value="Sub AddText (text As String) Implements IAddChild.AddText" />
<MemberSignature Language="C++ CLI" Value=" virtual void System.Windows.Markup.IAddChild.AddText(System::String ^ text) = System::Windows::Markup::IAddChild::AddText;" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Windows.Markup.IAddChild.AddText(System.String)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="text" Type="System.String" />
</Parameters>
<Docs>
<param name="text">A string to add to the object.</param>
<summary>This type or member supports the [!INCLUDE[TLA#tla_winclient](~/includes/tlasharptla-winclient-md.md)] infrastructure and is not intended to be used directly from your code.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="VisualChildrenCount">
<MemberSignature Language="C#" Value="protected override int VisualChildrenCount { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 VisualChildrenCount" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Grid.VisualChildrenCount" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property VisualChildrenCount As Integer" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual property int VisualChildrenCount { int get(); };" />
<MemberSignature Language="F#" Value="member this.VisualChildrenCount : int" Usage="System.Windows.Controls.Grid.VisualChildrenCount" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that represents the total number of <see cref="T:System.Windows.Media.Visual" /> children within this instance of <see cref="T:System.Windows.Controls.Grid" />.</summary>
<value>
<see cref="T:System.Int32" /> that represents the total number of child <see cref="T:System.Windows.Media.Visual" /> objects. The default value is zero.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The visual tree must not be modified during a call to this method.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.