Search
Unit Members
Constructors Properties Methods
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
Control Class
DateFormats Class
DateSettings Class
EventDispatcher Class
IdGenerator Class
Locale Class
NotifyCollectionChangedAction Class
NotifyCollectionChangedEventArgs Class
NotifyCollectionChangingEventArgs Class
PropertyEventArgs Class
UIControl Class
Unit Class
Unit Members
Unit Constructor
Unit Methods
Unit Properties
UnitType Enumeration
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Represents a length measurement.

The following tables list the members exposed by the Unit type.

## Public Constructors

| Name | Description
--- | --- | ---
| Unit | Initializes a new instance of the Unit class.

## Public Properties

| Name | Description
--- | --- | ---
| isEmpty | Gets a value representing whether this Unit instance has a set value.
| type | The unit type.
| value | The unit value.

## Public Methods

| Name | Description
--- | --- | ---
| empty | Creates an empty Unit instance.
| parse | Creates a Unit instance from a string representation.
| percentage | Creates a Unit instance with the specified value and UnitType.Percent.
| pixel | Creates a Unit instance with the specified value and UnitType.Pixel.
| toString | Returns a string representation of this Unit.

## See Also

Unit Class
MindFusion.Common Namespace