MarginsConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a MarginsConverter for Margins.
public ref class MarginsConverter : System::ComponentModel::ExpandableObjectConverter
public class MarginsConverter : System.ComponentModel.ExpandableObjectConverter
type MarginsConverter = class
inherit ExpandableObjectConverter
Public Class MarginsConverter
Inherits ExpandableObjectConverter
- Inheritance
Remarks
The MarginsConverter class provides methods that can convert a string to a Margins.
Note
You should never access a type converter directly. Instead, call the appropriate converter by using TypeDescriptor. For more information, see the examples in the TypeConverter base class.
For more information about type converters, see the TypeConverter base class.
For more information on printing, see the System.Drawing.Printing namespace overview.
Constructors
| Name | Description |
|---|---|
| MarginsConverter() |
Initializes a new instance of the MarginsConverter class. |
Methods
| Name | Description |
|---|---|
| CanConvertFrom(ITypeDescriptorContext, Type) |
Returns whether this converter can convert an object of the specified source type to the native type of the converter using the specified context. |
| CanConvertTo(ITypeDescriptorContext, Type) |
Returns whether this converter can convert an object to the given destination type using the context. |
| ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
Converts the specified object to the converter's native type. |
| ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) |
Converts the given value object to the specified destination type using the specified context and arguments. |
| CreateInstance(ITypeDescriptorContext, IDictionary) |
Creates an Object given a set of property values for the object. |
| GetCreateInstanceSupported(ITypeDescriptorContext) |
Returns whether changing a value on this object requires a call to the CreateInstance(ITypeDescriptorContext, IDictionary) method to create a new value, using the specified context. |