TableCell Class
Definition
A cell element within a Avalonia.Controls.Documents.TableRow.
public class TableCell
Constructors
| Name | Description |
|---|---|
| TableCell | No summary available. |
TableCell Constructor
public TableCell()
Methods
| Name | Description |
|---|---|
| ApplyStyling | Applies styling to the control if the control is initialized and styling is not already applied. Inherited from StyledElement. |
| BeginInit | Inherited from StyledElement. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| EndInit | Inherited from StyledElement. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| TryGetResource | Inherited from StyledElement. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Properties
| Name | Description |
|---|---|
| ActualThemeVariant | Gets the UI theme that is currently used by the element, which might be different than the RequestedThemeVariantProperty. Inherited from StyledElement. |
| Background | Gets or sets the brush used to fill the background of the control. Inherited from RichTextElement. |
| Blocks | Gets the blocks that make up this cell. |
| BorderBrush | Gets or sets the border brush for the cell border. |
| BorderThickness | Gets or sets the border thickness around the cell. |
| Classes | Gets or sets the styled element's classes. Inherited from StyledElement. |
| ColumnSpan | Gets or sets the number of columns this cell spans. |
| ContentEnd | Gets a text pointer to the end of the content in the document. Inherited from RichTextElement. |
| ContentLength | Gets the length, in characters, that is covered by this element. Inherited from RichTextElement. |
| ContentRange | Gets the range of text that represents the entire content, or null if the content is empty or unavailable. Inherited from RichTextElement. |
| ContentStart | Gets a text pointer to the start of the content in the document. Inherited from RichTextElement. |
| DataContext | Gets or sets the control's data context. Inherited from StyledElement. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| FirstChildElement | Gets the first direct child element in the document tree, or if none exists. Inherited from RichTextElement. |
| FlowDirection | Gets or sets the flow direction of text within the cell. |
| FontFamily | Gets or sets the font family used to display text. Inherited from RichTextElement. |
| FontFeatures | Gets or sets the collection of font features to apply to the text. Inherited from RichTextElement. |
| FontSize | Gets or sets the size of the font used to display text. Inherited from RichTextElement. |
| FontStretch | Gets or sets the degree to which the font is stretched horizontally. Inherited from RichTextElement. |
| FontStyle | Gets or sets the font style used to display the text. Inherited from RichTextElement. |
| FontWeight | Gets or sets the weight or thickness of the font used to display text. Inherited from RichTextElement. |
| Foreground | Gets or sets the brush used to paint the foreground of the control. Inherited from RichTextElement. |
| IsAttachedToDocument | Gets a value indicating whether this element is currently attached to a Avalonia.Controls.Documents.TextModel.TextDocument. Inherited from RichTextElement. |
| IsInitialized | Gets a value that indicates whether the element has finished initialization. Inherited from StyledElement. |
| Item | Inherited from AvaloniaObject. |
| LastChildElement | Gets the last direct child element in the document tree, or if none exists. Inherited from RichTextElement. |
| LetterSpacing | Gets or sets the letter spacing. Inherited from RichTextElement. |
| LineHeight | Gets or sets the line height within the cell. |
| Name | Gets or sets the name of the styled element. Inherited from StyledElement. |
| NextElement | Gets the next sibling element in the document tree, or if none exists. Inherited from RichTextElement. |
| Padding | Gets or sets the padding inside the cell border. |
| Parent | Gets the styled element's logical parent. Inherited from StyledElement. |
| PreviousElement | Gets the previous sibling element in the document tree, or if none exists. Inherited from RichTextElement. |
| Resources | Gets or sets the styled element's resource dictionary. Inherited from StyledElement. |
| RowSpan | Gets or sets the number of rows this cell spans. |
| StyleKey | Gets the type by which the element is styled. Inherited from StyledElement. |
| Styles | Gets the styles for the styled element. Inherited from StyledElement. |
| TemplatedParent | Gets the styled element whose lookless template this styled element is part of. Inherited from StyledElement. |
| TextAlignment | Gets or sets the text alignment within the cell. |
| TextDocument | Gets the Avalonia.Controls.Documents.TextModel.TextDocument this element is attached to, or if not attached. Inherited from RichTextElement. |
| Theme | Gets or sets the theme to be applied to the element. Inherited from StyledElement. |
| Transitions | Gets or sets the property transitions for the control. Inherited from Animatable. |
| VerticalAlignment | Gets or sets how the cell's content is aligned within the row height (Avalonia.Layout.VerticalAlignment.Top by default, plus Avalonia.Layout.VerticalAlignment.Center and Avalonia.Layout.VerticalAlignment.Bottom; maps to Word's w:vAlign). Avalonia.Layout.VerticalAlignment.Stretch is treated as top. |
Blocks Property
Gets the blocks that make up this cell.
public Avalonia.Controls.Documents.BlockCollection Blocks { get; set; }
BorderBrush Property
Gets or sets the border brush for the cell border.
public Avalonia.Media.IBrush BorderBrush { get; set; }
BorderThickness Property
Gets or sets the border thickness around the cell.
public Avalonia.Thickness BorderThickness { get; set; }
ColumnSpan Property
Gets or sets the number of columns this cell spans.
public int ColumnSpan { get; set; }
FlowDirection Property
Gets or sets the flow direction of text within the cell.
public Avalonia.Media.FlowDirection FlowDirection { get; set; }
LineHeight Property
Gets or sets the line height within the cell.
public double LineHeight { get; set; }
Padding Property
Gets or sets the padding inside the cell border.
public Avalonia.Thickness Padding { get; set; }
RowSpan Property
Gets or sets the number of rows this cell spans.
public int RowSpan { get; set; }
TextAlignment Property
Gets or sets the text alignment within the cell.
public Avalonia.Media.TextAlignment TextAlignment { get; set; }
VerticalAlignment Property
Gets or sets how the cell's content is aligned within the row height
(Avalonia.Layout.VerticalAlignment.Top by default, plus
Avalonia.Layout.VerticalAlignment.Center and
Avalonia.Layout.VerticalAlignment.Bottom; maps to Word's
w:vAlign). Avalonia.Layout.VerticalAlignment.Stretch
is treated as top.
public Avalonia.Layout.VerticalAlignment VerticalAlignment { get; set; }
Fields
BorderBrushProperty Field
Defines the Avalonia.Controls.Documents.TableCell.BorderBrush property.
public Avalonia.StyledProperty<Avalonia.Media.IBrush> BorderBrushProperty
BorderThicknessProperty Field
Defines the Avalonia.Controls.Documents.TableCell.BorderThickness property.
public Avalonia.StyledProperty<Avalonia.Thickness> BorderThicknessProperty
ColumnSpanProperty Field
Defines the Avalonia.Controls.Documents.TableCell.ColumnSpan property.
public Avalonia.StyledProperty<int> ColumnSpanProperty
FlowDirectionProperty Field
Defines the Avalonia.Controls.Documents.TableCell.FlowDirection property.
public Avalonia.AttachedProperty<Avalonia.Media.FlowDirection> FlowDirectionProperty
LineHeightProperty Field
Defines the Avalonia.Controls.Documents.TableCell.LineHeight property.
public Avalonia.AttachedProperty<double> LineHeightProperty
PaddingProperty Field
Defines the Avalonia.Controls.Documents.TableCell.Padding property.
public Avalonia.StyledProperty<Avalonia.Thickness> PaddingProperty
RowSpanProperty Field
Defines the Avalonia.Controls.Documents.TableCell.RowSpan property.
public Avalonia.StyledProperty<int> RowSpanProperty
TextAlignmentProperty Field
Defines the Avalonia.Controls.Documents.TableCell.TextAlignment property.
public Avalonia.AttachedProperty<Avalonia.Media.TextAlignment> TextAlignmentProperty
VerticalAlignmentProperty Field
Defines the Avalonia.Controls.Documents.TableCell.VerticalAlignment property.
public Avalonia.StyledProperty<Avalonia.Layout.VerticalAlignment> VerticalAlignmentProperty
Events
| Name | Description |
|---|---|
| ActualThemeVariantChanged | Raised when the theme variant is changed on the element or an ancestor of the element. Inherited from StyledElement. |
| AttachedToLogicalTree | Raised when the styled element is attached to a rooted logical tree. Inherited from StyledElement. |
| DataContextChanged | Occurs when the Avalonia.StyledElement.DataContext property changes. Inherited from StyledElement. |
| DetachedFromLogicalTree | Raised when the styled element is detached from a rooted logical tree. Inherited from StyledElement. |
| Initialized | Occurs when the styled element has finished initialization. Inherited from StyledElement. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |
| ResourcesChanged | Occurs when a resource in this styled element or a parent styled element has changed. Inherited from StyledElement. |