|
//------------------------------------------------------------------------------
// <copyright file="COM2DataTypeToManagedDataTypeConverter.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Windows.Forms.ComponentModel.Com2Interop {
using System.Runtime.Serialization.Formatters;
using System.ComponentModel;
using System.Diagnostics;
using System;
using System.Drawing;
using System.ComponentModel.Design;
using System.Collections;
using Microsoft.Win32;
/// <include file='doc\COM2DataTypeToManagedDataTypeConverter.uex' path='docs/doc[@for="Com2DataTypeToManagedDataTypeConverter"]/*' />
/// <devdoc>
/// This base class maps an ole defined data type (OLE_COLOR, IFont, etc.),
///
/// </devdoc>
internal abstract class Com2DataTypeToManagedDataTypeConverter{
public virtual bool AllowExpand {
get {
return false;
}
}
/// <include file='doc\COM2DataTypeToManagedDataTypeConverter.uex' path='docs/doc[@for="Com2DataTypeToManagedDataTypeConverter.ManagedType"]/*' />
/// <devdoc>
/// Returns the managed type that this editor maps the property type to.
/// </devdoc>
public abstract Type ManagedType{
get;
}
/// <include file='doc\COM2DataTypeToManagedDataTypeConverter.uex' path='docs/doc[@for="Com2DataTypeToManagedDataTypeConverter.ConvertNativeToManaged"]/*' />
/// <devdoc>
/// Converts the native value into a managed value
/// </devdoc>
public abstract object ConvertNativeToManaged(object nativeValue, Com2PropertyDescriptor pd);
/// <include file='doc\COM2DataTypeToManagedDataTypeConverter.uex' path='docs/doc[@for="Com2DataTypeToManagedDataTypeConverter.ConvertManagedToNative"]/*' />
/// <devdoc>
/// Converts the managed value into a native value
/// </devdoc>
public abstract object ConvertManagedToNative(object managedValue, Com2PropertyDescriptor pd, ref bool cancelSet);
}
}
|