Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FontUnit Structure

 

Represents the size of a font.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[SerializableAttribute]
[TypeConverterAttribute((FontUnitConverter^::typeid))]
public value struct FontUnit

NameDescription
System_CAPS_pubmethodFontUnit(Double)

Initializes a new instance of the FontUnit class with the specified font size in points.

System_CAPS_pubmethodFontUnit(Double, UnitType)

Initializes a new instance of the FontUnit class with the specified font size and UnitType value.

System_CAPS_pubmethodFontUnit(FontSize)

Initializes a new instance of the FontUnit class with the specified FontSize.

System_CAPS_pubmethodFontUnit(Int32)

Initializes a new instance of the FontUnit class with the specified font size.

System_CAPS_pubmethodFontUnit(String^)

Initializes a new instance of the FontUnit class with the specified string.

System_CAPS_pubmethodFontUnit(String^, CultureInfo^)

Initializes a new instance of the FontUnit class with the specified string using the specified System.Globalization::CultureInfo object.

System_CAPS_pubmethodFontUnit(Unit)

Initializes a new instance of the FontUnit class with the specified Unit.

NameDescription
System_CAPS_pubpropertyIsEmpty

Gets a value that indicates whether the font size has been set.

System_CAPS_pubpropertyType

Gets a FontSize enumeration value that represents the font size.

System_CAPS_pubpropertyUnit

Gets a Unit that represents the font size.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified System::Object is equivalent to the instance of the FontUnit class that this method is called from.(Overrides ValueType::Equals(Object^).)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Overrides ValueType::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticParse(String^)

Converts the specified string to its FontUnit equivalent.

System_CAPS_pubmethodSystem_CAPS_staticParse(String^, CultureInfo^)

Converts the specified string to its FontUnit equivalent in the specified culture.

System_CAPS_pubmethodSystem_CAPS_staticPoint(Int32)

Creates a FontUnit of type System.Drawing::Point from an integer value.

System_CAPS_pubmethodToString()

Converts the FontUnit object to the default string representation.(Overrides ValueType::ToString().)

System_CAPS_pubmethodToString(CultureInfo^)

Converts the FontUnit object to a string representation, using the specified System.Globalization::CultureInfo.

System_CAPS_pubmethodToString(IFormatProvider^)

Converts a FontUnit object to a string equivalent using the specified format provider.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticEmpty

Represents an empty FontUnit object.

System_CAPS_pubfieldSystem_CAPS_staticLarge

Represents a FontUnit object with the Type property set to FontSize.Large.

System_CAPS_pubfieldSystem_CAPS_staticLarger

Represents a FontUnit object with the Type property set to FontSize.Larger.

System_CAPS_pubfieldSystem_CAPS_staticMedium

Represents a FontUnit object with the Type property set to FontSize.Medium.

System_CAPS_pubfieldSystem_CAPS_staticSmall

Represents a FontUnit object with the Type property set to FontSize.Small.

System_CAPS_pubfieldSystem_CAPS_staticSmaller

Represents a FontUnit object with the Type property set to FontSize.Smaller.

System_CAPS_pubfieldSystem_CAPS_staticXLarge

Represents a FontUnit object with the Type property set to FontSize.XLarge.

System_CAPS_pubfieldSystem_CAPS_staticXSmall

Represents a FontUnit object with the Type property set to FontSize.XSmall.

System_CAPS_pubfieldSystem_CAPS_staticXXLarge

Represents a FontUnit object with the Type property set to FontSize.XXLarge.

System_CAPS_pubfieldSystem_CAPS_staticXXSmall

Represents a FontUnit object with the Type property set to FontSize.XXSmall.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(FontUnit, FontUnit)

Compares two FontUnit objects for equality.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(Int32 to FontUnit)

Implicitly creates a FontUnit of type System.Drawing::Point from an integer value.

System_CAPS_puboperatorSystem_CAPS_staticInequality(FontUnit, FontUnit)

Compares two FontUnit objects for inequality.

For a list of initial property values for an instance of FontUnit, see the FontUnit constructor.

The following code example demonstrates how to use a Style object to change the style properties for multiple controls at one time. Each time one of the Style property values changes, each control must call its ApplyStyle method. Not all the controls included in this example support all the properties that are demonstrated. If a control does not support a particular property, the appearance of the control will not change when the property value is changed.

System_CAPS_security Security Note

This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2017 Microsoft