[]
        
(Showing Draft Content)

C1.WinUI.Grid.GridTextCellView

GridTextCellView Class

Grid cell dedicated to render text.

Inheritance
GridTextCellView
Namespace: C1.WinUI.Grid
Assembly: C1.WinUI.Grid.dll
Syntax
public class GridTextCellView : GridCellView, IDisposable, INotifyPropertyChanged
Public Class GridTextCellView
    Inherits GridCellView
    Implements IDisposable, INotifyPropertyChanged

Constructors

Name Description
GridTextCellView()

Initializes a new instance of the GridTextCellView class.

Fields

Name Description
HorizontalTextAlignmentProperty

Identifies the HorizontalTextAlignment dependency property.

TextMarginProperty

Identifies the TextMargin dependency property.

TextProperty

Identifies the Text dependency property.

VerticalTextAlignmentProperty

Identifies the VerticalTextAlignment dependency property.

Properties

Name Description
HorizontalTextAlignment

Gets or sets the text horizontal alignment.

NeedsRenderContent

Gets whether the OnRenderContent(CanvasDrawingSession, Rect) method needs to be executed and the clipping of the content.

Text

Gets or sets the text.

TextMargin

Gets or sets the text margin.

VerticalTextAlignment

Gets or sets the text vertical alignment.

Methods

Name Description
Dispose(bool)
OnApplyTemplate()
OnFlowDirectionChanged()

Called when the flow direction changed.

OnFontChanged()

Called when any of the font properties changed.

OnForegroundChanged()

Called when the foreground changed.

OnPropertyChanged(string)

Called when a property changed.

OnRenderContent(CanvasDrawingSession, Rect)

Draw the content of the control in the specified drawingContext.