skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ColumnLength

Describes the length of a column which could be either fixed-sized or auto-sized.

Inheritance
System.Object
ColumnLength
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GanttView.dll

Syntax

public sealed class ColumnLength : ValueType, IEquatable<ColumnLength>

Properties

Type

Gets the type of the ColumnLength instance.

Declaration
public ColumnLengthType Type { get; }
Property Value
ColumnLengthType

Value

Gets the actual fixed size of the ColumnLength instance. If the length is not fixed-size, double.NaN is returned instead.

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

Methods

Equals(Object)

Determines whether the specified System.Object is equal to the current ColumnLength.

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

The object to compare with the current object.

Returns
System.Boolean

true if the specified System.Object is of type ColumnLength and is equal to the current ColumnLength; otherwise, false.

Equals(ColumnLength)

Determines whether the specified ColumnLength is equal to the current ColumnLength.

Declaration
public bool Equals(ColumnLength other)
Parameters
ColumnLength other

The object to compare with the current object.

Returns
System.Boolean

true if the specified ColumnLength is equal to the current ColumnLength; otherwise, false.

FromColumnLengthType(ColumnLengthType)

Creates a new instance of the ColumnLength class by type.

Declaration
public static ColumnLength FromColumnLengthType(ColumnLengthType type)
Parameters
ColumnLengthType type

The type of the ColumnLength instance.

Returns
ColumnLength

FromDouble(Double)

Creates a new fixed-size instance of the ColumnLength class using the provided double value.

Declaration
public static ColumnLength FromDouble(double length)
Parameters
System.Double length

The actual fixed size of the ColumnLength instance.

Returns
ColumnLength

A new fixed-size instance of the ColumnLength class using the provided double value.

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
System.Int32

A 32-bit signed integer that is the hash code for this instance.

Operators

Equality(ColumnLength, ColumnLength)

Compares two instance of the ColumnLength struct for equality.

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

The left-hand operand of the equality operator.

ColumnLength right

The right-hand operand of the equality operator.

Returns
System.Boolean

true if the left and the right-hand operands are equal; false otherwise.

Implicit(Double to ColumnLength)

Converts from System.Double to a fixed-size ColumnLength.

Declaration
public static implicit operator ColumnLength(double length)
Parameters
System.Double length

The length of the fixed-size ColumnLength to be created.

Returns
ColumnLength

A fixed-size ColumnLength.

Implicit(ColumnLengthType to ColumnLength)

Converts from ColumnLengthType to ColumnLength.

Declaration
public static implicit operator ColumnLength(ColumnLengthType type)
Parameters
ColumnLengthType type

The type of the ColumnLength to be created.

Returns
ColumnLength

A ColumnLength of the type specified.

Inequality(ColumnLength, ColumnLength)

Compares two instance of the ColumnLength struct for equality.

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

The left-hand operand of the equality operator.

ColumnLength right

The right-hand operand of the equality operator.

Returns
System.Boolean

true if the left and the right-hand operands are not equal; false otherwise.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
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.