skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewLength

GridViewLength is the type used for various length properties in GridViewDataControl.

Inheritance
System.Object
GridViewLength
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll

Syntax

public sealed class GridViewLength : ValueType, IEquatable<GridViewLength>

Constructors

GridViewLength(Double)

Initializes a new instance of the GridViewLength struct. Initializes as an absolute value in pixels.

Declaration
public GridViewLength(double value)
Parameters
System.Double value

GridViewLength(Double, GridViewLengthUnitType)

Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.

Declaration
public GridViewLength(double value, GridViewLengthUnitType type)
Parameters
System.Double value

GridViewLengthUnitType type

GridViewLength(Double, GridViewLengthUnitType, Double, Double)

Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.

Declaration
public GridViewLength(double value, GridViewLengthUnitType type, double desiredValue, double displayValue)
Parameters
System.Double value

GridViewLengthUnitType type

System.Double desiredValue

System.Double displayValue

Properties

Auto

Returns a value initialized to mean "auto".

Declaration
public static GridViewLength Auto { get; }
Property Value
GridViewLength

DesiredValue

Returns the desired value of this instance.

Declaration
public double DesiredValue { get; }
Property Value
System.Double

DisplayValue

Returns the display value of this instance.

Declaration
public double DisplayValue { get; }
Property Value
System.Double

IsAbsolute

Returns true if this GridViewLength instance holds an absolute (pixel) value.

Declaration
public bool IsAbsolute { get; }
Property Value
System.Boolean

IsAuto

Returns true if this GridViewLength instance is automatic (not specified).

Declaration
public bool IsAuto { get; }
Property Value
System.Boolean

IsSizeToCells

Returns true if this instance is to size to the cells of a column or row.

Declaration
public bool IsSizeToCells { get; }
Property Value
System.Boolean

IsSizeToHeader

Returns true if this instance is to size to the header of a column or row.

Declaration
public bool IsSizeToHeader { get; }
Property Value
System.Boolean

IsStar

Returns true if this GridViewLength instance holds a weighted proportion of available space.

Declaration
public bool IsStar { get; }
Property Value
System.Boolean

SizeToCells

Returns a value initialized to mean "size to cells".

Declaration
public static GridViewLength SizeToCells { get; }
Property Value
GridViewLength

SizeToHeader

Returns a value initialized to mean "size to header".

Declaration
public static GridViewLength SizeToHeader { get; }
Property Value
GridViewLength

UnitType

Returns unit type of this GridViewLength instance.

Declaration
public GridViewLengthUnitType UnitType { get; }
Property Value
GridViewLengthUnitType

Value

Returns value part of this DataGridLength instance.

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

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Equals(GridViewLength)

Compares this instance of GridViewLength with another instance.

Declaration
public bool Equals(GridViewLength other)
Parameters
GridViewLength other

Returns
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

ToString()

Declaration
public override string ToString()
Returns
System.String

ToString(IFormatProvider)

Declaration
public string ToString(IFormatProvider provider)
Parameters
System.IFormatProvider provider

Returns
System.String

Operators

Equality(GridViewLength, GridViewLength)

Overloaded operator, compares 2 GridViewLength's.

Declaration
public static bool operator ==(GridViewLength left, GridViewLength right)
Parameters
GridViewLength left

GridViewLength right

Returns
System.Boolean

Implicit(Double to GridViewLength)

Allows for values of type double to be implicitly converted to GridViewLength.

Declaration
public static implicit operator GridViewLength(double value)
Parameters
System.Double value

The number of pixels to represent.

Returns
GridViewLength

Inequality(GridViewLength, GridViewLength)

Overloaded operator, compares 2 GridViewLength's.

Declaration
public static bool operator !=(GridViewLength left, GridViewLength right)
Parameters
GridViewLength left

GridViewLength right

Returns
System.Boolean

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
  • Themes Generator
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
  • System Requirements
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.