System.Web
1.0.5000.0
2.0.0.0
Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.
System.Object
System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))
Use the class to encapsulate the font properties of text. You can specify the font name and font size. You can also specify whether the style of the font is bold, italic, overlined, strikethrough, or underlined.
This class is commonly used in a property for a class that requires font information, such as the property of the class.
This class does not have a public constructor. A new instance of the class cannot be created directly.
Encapsulates the font properties of text. This class cannot be inherited.
Property
System.Boolean
To be added: an object of type 'bool'
Use the property to specify or determine whether the font is bold.
The value of this property is stored in view state.
Gets or sets a value that indicates whether the font is bold.
1.0.5000.0
2.0.0.0
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.DefaultValue(false)
Method
2.0.0.0
System.Void
properties are unset when the object is created. When a property is first set, the value is added to view state. The method is used to set all the properties to the unset state and remove any entries in view state. The following properties are reset:
-
-
-
-
-
-
-
-
Resets all properties to the unset state and clears the view state.
Method
System.Void
Use the method to duplicate the font properties of the specified into the instance of the class that this method is called from.
All properties in the current instance of the class will be replaced by the associated property in the parameter.
When a style is registered using , and then copied using , only the property is copied to the destination, not all the individual properties. Therefore, if you are using to copy font information from the property of a that is registered, you will not get the individual settings of the font from the style.
Duplicates the font properties of the specified into the instance of the class that this method is called from.
A that contains the font properties to duplicate.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
Use the property to specify or determine whether the font is italic.
The value of this property is stored in view state.
Gets or sets a value that indicates whether the font is italic.
1.0.5000.0
2.0.0.0
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.DefaultValue(false)
Method
System.Void
Use the method to combine the font properties of the specified with the instance of the class that this method is called from.
This method joins the properties of the two objects by setting each property that is not set in the current instance of the class with the value in the corresponding property of the parameter. Only properties that have not been set will be replaced. If a property in the parameter is not set, it will not replace the corresponding property in the current instance of the class.
Combines the font properties of the specified with the instance of the class that this method is called from.
A that contains the font properties to combine.
1.0.5000.0
2.0.0.0
Property
System.String
To be added: an object of type 'string'
Use the property to specify or determine the primary font name. The primary font name determines the font that is used to display text in the control associated with the .
When you set the property, the property is automatically updated with the first item in the property. If you set the property, the property is automatically updated with a single element array containing the value of the property.
Gets or sets the primary font name.
1.0.5000.0
2.0.0.0
System.ComponentModel.TypeConverter(typeof(System.Drawing.FontConverter+FontNameConverter))
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.Editor("System.Drawing.Design.FontNameEditor, System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))
System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
System.ComponentModel.DefaultValue("")
System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)
Property
System.String[]
To be added: an object of type 'string []'
Use the property to specify or determine an ordered array of font names for a . The property is commonly used to store a list of available font names.
When you set the property, the property is automatically updated with the first item in the property. If you set the property, the property is automatically updated with a single element array containing the value of the property.
To specify the font name for the using the array, set the first element in the array to the font name you want to use. Since the property is automatically updated when the property is set, you need to manipulate the array to rearrange the order of the items in the array instead of setting the property directly.
The value of this property is stored in view state.
Gets or sets an ordered array of font names.
1.0.5000.0
2.0.0.0
System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.FontNamesConverter))
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.Editor("System.Windows.Forms.Design.StringArrayEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))
System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)
Property
System.Boolean
To be added: an object of type 'bool'
Use the property to specify or determine whether the font contains a line above the text.
The value of this property is stored in view state.
The font underline behavior for links generated by the , , and controls is affected by setting the property of the for the control. If the property is set, regardless of value its value, you must set the property explicitly if you want the link to be underlined.
Gets or sets a value that indicates whether the font is overlined.
1.0.5000.0
2.0.0.0
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.DefaultValue(false)
Method
System.Boolean
Use the method to determine whether the property has changed from its default value. This method is commonly used if you are either creating a designer for the class or creating your own control incorporating the class.
The property must have at least one entry to be serialized.
Determines whether the property should be persisted.
true if the property has changed from its default value; otherwise, false.
1.0.5000.0
2.0.0.0
Property
System.Web.UI.WebControls.FontUnit
To be added: an object of type 'FontUnit'
Use the property to specify the size of the font.
The value of this property is stored in view state.
Gets or sets the font size.
1.0.5000.0
2.0.0.0
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.FontUnit), "")
System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)
Property
System.Boolean
To be added: an object of type 'bool'
Use the property to specify or determine whether the font contains a line through the text.
The value of this property is stored in view state.
The font underline behavior for links generated by the , , and controls is affected by setting the property of the for the control. If the property is set, regardless of its value, you must set the property explicitly if you want the link to be underlined.
Gets or sets a value that indicates whether the font is strikethrough.
1.0.5000.0
2.0.0.0
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.DefaultValue(false)
Method
System.String
Use the method to create a string that contains the font name and size, separated by a comma, for an instance of the class.
If the property is not set, only the font name is returned.
Returns a string that contains the font name and size for an instance of the class.
A string that contains the font name and size for an instance of the class.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
Use the property to specify or determine whether the font contains a line under the text.
The value of this property is stored in view state.
The font underline behavior for links generated by the , , and controls is affected by setting the and the properties of the for the control. If the or the properties are set, regardless of their value, you must set the property explicitly if you want the link to be underlined.
Gets or sets a value that indicates whether the font is underlined.
1.0.5000.0
2.0.0.0
System.ComponentModel.NotifyParentProperty(true)
System.ComponentModel.DefaultValue(false)