menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class UpDownPaint - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class UpDownPaint

    Inheritance
    System.Object
    UpDownPaint
    Inherited Members
    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: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public class UpDownPaint

    Constructors

    UpDownPaint()

    Default constructor.

    Declaration
    public UpDownPaint()

    Properties

    Margin

    Gets or sets the margins.

    Declaration
    public Thickness Margin { get; set; }
    Property Value
    Type
    System.Windows.Thickness

    Methods

    DrawUpdown(DrawingContext, Rect, String, GridStyleInfo)

    Draws the UpDown Control in the cell rectangle.

    Declaration
    public Thickness DrawUpdown(DrawingContext dc, Rect rc, string text, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Windows.Media.DrawingContext dc

    The drawing context.

    System.Windows.Rect rc

    Cell rectangle.

    System.String text

    Text to be drawn over the UpDown Control.

    GridStyleInfo style

    Cell style information.

    Returns
    Type Description
    System.Windows.Thickness

    Cell margins.

    SubtractBorderMargins(Rect, Thickness)

    Removes border margins to get cells client area.

    Declaration
    public Rect SubtractBorderMargins(Rect cellRect, Thickness mi)
    Parameters
    Type Name Description
    System.Windows.Rect cellRect

    Cell rectangle.

    System.Windows.Thickness mi

    The border margins.

    Returns
    Type Description
    System.Windows.Rect

    Returns the cells client area.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved