Show / Hide Table of Contents

Class ColumnDefinition

Defines column-specific properties that apply to Grid objects.

Inheritance
System.Object
DependencyObject
DefinitionBase
ColumnDefinition
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public sealed class ColumnDefinition : DefinitionBase, IDependencyObject

Constructors

| Improve this Doc View Source

ColumnDefinition()

Initializes a new instance of the ColumnDefinition class.

Declaration
public ColumnDefinition()

Fields

| Improve this Doc View Source

MaxWidthProperty

Identifies the MaxWidth dependency property.

Declaration
public static readonly DependencyProperty MaxWidthProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MinWidthProperty

Identifies the MinWidth dependency property.

Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

WidthProperty

Identifies the Width dependency property.

Declaration
public static readonly DependencyProperty WidthProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

ActualWidth

Gets a value that represents the actual calculated width of a ColumnDefinition.

Declaration
public double ActualWidth { get; }
Property Value
Type Description
System.Double

A System.Double that represents the actual calculated width in pixels. The default is 0.

| Improve this Doc View Source

MaxWidth

Gets or sets a value that represents the maximum width of a ColumnDefinition.

Declaration
public double MaxWidth { get; set; }
Property Value
Type Description
System.Double

A System.Double that represents the maximum width in pixels. The default is System.Double.PositiveInfinity.

| Improve this Doc View Source

MinWidth

Gets or sets a value that represents the minimum width of a ColumnDefinition.

Declaration
public double MinWidth { get; set; }
Property Value
Type Description
System.Double

A System.Double that represents the minimum width in pixels. The default is 0.

| Improve this Doc View Source

Offset

Gets a value that represents the offset value of this ColumnDefinition.

Declaration
public double Offset { get; }
Property Value
Type Description
System.Double

A System.Double that represents the offset of the column. The default value is 0.0.

| Improve this Doc View Source

Width

Gets the calculated width of a ColumnDefinition element, or sets the GridLength value of a column that is defined by the ColumnDefinition.

Declaration
public GridLength Width { get; set; }
Property Value
Type Description
GridLength

The GridLength that represents the width of the column. The default value is 1.0.

Methods

| Improve this Doc View Source

Clone()

Returns a copy of the current ColumnDefinition.

Declaration
public ColumnDefinition Clone()
Returns
Type Description
ColumnDefinition

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source