- List Box. Object Collection Класс
- Определение
- Примеры
- Комментарии
- Конструкторы
- Свойства
- Методы
- Явные реализации интерфейса
- Методы расширения
- Form Collection Класс
- Определение
- Комментарии
- Конструкторы
- Свойства
- Методы
- Явные реализации интерфейса
- Методы расширения
- Data Object Класс
- Определение
- Примеры
- Комментарии
- Конструкторы
- Методы
- Явные реализации интерфейса
List Box. Object Collection Класс
Определение
Представляет коллекцию элементов в ListBox. Represents the collection of items in a ListBox.
Примеры
В следующем примере кода демонстрируется прорисовка владельцем ListBox путем присвоения DrawMode свойству OwnerDrawVariable значения и обработки DrawItem MeasureItem событий и. The following code example demonstrates an owner-drawn ListBox by setting the DrawMode property to the OwnerDrawVariable value and handling the DrawItem and MeasureItem events. Также демонстрируется установка BorderStyle свойств и ScrollAlwaysVisible и использование AddRange метода. It also demonstrates setting the BorderStyle and ScrollAlwaysVisible properties and using the AddRange method.
Чтобы выполнить этот пример, вставьте его в пустую форму, которая импортирует System.Drawing пространство имен и System.Windows.Forms пространство имен. To run this example, paste it into an empty form that imports the System.Drawing namespace and the System.Windows.Forms namespace. Вызовите InitializeOwnerDrawnListBox из конструктора или метода формы Load . Call InitializeOwnerDrawnListBox from the form’s constructor or Load method.
Комментарии
ListBox.ObjectCollectionКласс хранит элементы, отображаемые в ListBox . The ListBox.ObjectCollection class stores the items displayed in the ListBox. В классе определены две другие коллекции ListBox , которые позволяют определить, какие элементы выбраны в этой коллекции. There are two other collections defined within the ListBox class that enable you to determine what items are selected within this collection. ListBox.SelectedObjectCollectionКласс предоставляет свойства и методы для определения того, какие элементы выбраны в ListBox.ObjectCollection , а ListBox.SelectedIndexCollection класс позволяет определить, какие индексы в ListBox.ObjectCollection них выбраны. The ListBox.SelectedObjectCollection class provides properties and methods for determining what items are selected within the ListBox.ObjectCollection, while the ListBox.SelectedIndexCollection class enables you to determine what indexes within the ListBox.ObjectCollection are selected.
Существует несколько способов добавления элементов в коллекцию. There are a number of ways to add items to the collection. AddМетод предоставляет возможность добавления одного объекта в коллекцию. The Add method provides the ability to add a single object to the collection. Чтобы добавить в коллекцию несколько объектов, необходимо создать массив элементов и присвоить его AddRange методу. To add a number of objects to the collection, you create an array of items and assign it to the AddRange method. Если вы хотите вставить объект в определенное место в коллекции, можно использовать Insert метод. If you want to insert an object at a specific location within the collection, you can use the Insert method. Чтобы удалить элементы, можно использовать Remove метод или RemoveAt метод, если известно, где находится элемент в коллекции. To remove items, you can use either the Remove method or the RemoveAt method if you know where the item is located within the collection. ClearМетод позволяет удалить все элементы из коллекции, а не использовать Remove метод для удаления одного элемента за раз. The Clear method enables you to remove all items from the collection instead of using the Remove method to remove a single item at a time.
Кроме того, можно управлять элементами с ListBox помощью DataSource Свойства. You can also manipulate the items of a ListBox by using the DataSource property. При использовании DataSource свойства для добавления элементов в ListBox можно просматривать элементы в ListBox с помощью Items свойства, но нельзя добавлять или удалять элементы из списка с помощью методов ListBox.ObjectCollection . If you use the DataSource property to add items to a ListBox, you can view the items in the ListBox using the Items property but you cannot add or remove items from the list using the methods of the ListBox.ObjectCollection.
Помимо методов и свойств для добавления и удаления элементов, объект ListBox.ObjectCollection также предоставляет методы для поиска элементов в коллекции. In addition to methods and properties for adding and removing items, the ListBox.ObjectCollection also provides methods to find items within the collection. ContainsМетод позволяет определить, является ли объект членом коллекции. The Contains method enables you to determine whether an object is a member of the collection. Если известно, что элемент находится в коллекции, можно использовать IndexOf метод, чтобы определить, где находится элемент в коллекции. Once you know that the item is located within the collection, you can use the IndexOf method to determine where the item is located within the collection.
Конструкторы
Инициализирует новый экземпляр ListBox.ObjectCollection. Initializes a new instance of ListBox.ObjectCollection.
Инициализирует новый экземпляр ListBox.ObjectCollection на основе другого экземпляра ListBox.ObjectCollection. Initializes a new instance of ListBox.ObjectCollection based on another ListBox.ObjectCollection.
Инициализирует новый экземпляр ListBox.ObjectCollection, содержащий массив объектов. Initializes a new instance of ListBox.ObjectCollection containing an array of objects.
Свойства
Возвращает количество элементов в коллекции. Gets the number of items in the collection.
Возвращает значение, указывающее, является ли коллекция доступной только для чтения. Gets a value indicating whether the collection is read-only.
Получает или задает элемент, расположенный в коллекции по указанному индексу. Gets or sets the item at the specified index within the collection.
Методы
Добавляет элемент в список позиций ListBox. Adds an item to the list of items for a ListBox.
Добавляет элементы существующего ListBox.ObjectCollection в список позиций ListBox. Adds the items of an existing ListBox.ObjectCollection to the list of items in a ListBox.
Добавляет массив элементов в список позиций ListBox. Adds an array of items to the list of items for a ListBox.
Удаляет все элементы из коллекции. Removes all items from the collection.
Определяет, содержится ли указанный элемент в коллекции. Determines whether the specified item is located within the collection.
Копирует коллекцию целиком в заданное место существующего массива объектов. Copies the entire collection into an existing array of objects at a specified location within the array.
Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.
(Унаследовано от Object)
Возвращает перечислитель для перебора элементов коллекции. Returns an enumerator to use to iterate through the item collection.
Служит хэш-функцией по умолчанию. Serves as the default hash function.
(Унаследовано от Object)
Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.
(Унаследовано от Object)
Возвращает индекс указанного элемента в коллекции. Returns the index within the collection of the specified item.
Вставляет элемент в список по указанному индексу. Inserts an item into the list box at the specified index.
Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.
(Унаследовано от Object)
Удаляет указанный объект из коллекции. Removes the specified object from the collection.
Удаляет из коллекции элемент по указанному индексу. Removes the item at the specified index within the collection.
Возвращает строку, представляющую текущий объект. Returns a string that represents the current object.
(Унаследовано от Object)
Явные реализации интерфейса
Этот API поддерживает инфраструктуру продукта и не предназначен для использования непосредственно из программного кода.
Копирует элементы коллекции в массив начиная с определенного индекса в массиве. Copies the elements of the collection to an array, starting at a particular array index.
Описание этого члена см. в разделе IsSynchronized. For a description of this member, see IsSynchronized.
Описание этого члена см. в разделе SyncRoot. For a description of this member, see SyncRoot.
Этот API поддерживает инфраструктуру продукта и не предназначен для использования непосредственно из программного кода.
Добавляет объект в класс ListBox. Adds an object to the ListBox class.
Определяет, содержит ли коллекция IList указанное значение. Determines whether the IList contains a specific value.
Определяет индекс заданного элемента коллекции IList. Determines the index of a specific item in the IList.
Вставляет элемент в список IList по указанному индексу. Inserts an item to the IList at the specified index.
Описание этого члена см. в разделе IsFixedSize. For a description of this member, see IsFixedSize.
Возвращает или задает элемент по указанному индексу. Gets or sets the element at the specified index.
Удаляет первое вхождение указанного объекта из коллекции IList. Removes the first occurrence of a specific object from the IList.
Методы расширения
Приводит элементы объекта IEnumerable к заданному типу. Casts the elements of an IEnumerable to the specified type.
Выполняет фильтрацию элементов объекта IEnumerable по заданному типу. Filters the elements of an IEnumerable based on a specified type.
Позволяет осуществлять параллельный запрос. Enables parallelization of a query.
Преобразовывает коллекцию IEnumerable в объект IQueryable. Converts an IEnumerable to an IQueryable.
Form Collection Класс
Определение
Представляет коллекцию объектов Form. Represents a collection of Form objects.
Комментарии
FormCollectionApplicationобъект используется объектом для перечисления открытых форм в приложении с помощью OpenForms Свойства. FormCollection is used by the Application object to list the currently open forms in an application through the OpenForms property.
Конструкторы
Инициализирует новый экземпляр класса FormCollection. Initializes a new instance of the FormCollection class.
Свойства
Возвращает количество элементов, содержащихся в экземпляре ReadOnlyCollectionBase. Gets the number of elements contained in the ReadOnlyCollectionBase instance.
(Унаследовано от ReadOnlyCollectionBase)
Получает список элементов, содержащихся в экземпляре ReadOnlyCollectionBase. Gets the list of elements contained in the ReadOnlyCollectionBase instance.
(Унаследовано от ReadOnlyCollectionBase)
Получает или задает элемент в коллекции по его числовому индексу. Gets or sets an element in the collection by its numeric index.
Получает или задает элемент в коллекции по имени связанного объекта Form. Gets or sets an element in the collection by the name of the associated Form object.
Методы
Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.
(Унаследовано от Object)
Возвращает перечислитель, перебирающий элементы экземпляра класса ReadOnlyCollectionBase. Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.
(Унаследовано от ReadOnlyCollectionBase)
Служит хэш-функцией по умолчанию. Serves as the default hash function.
(Унаследовано от Object)
Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.
(Унаследовано от Object)
Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.
(Унаследовано от Object)
Возвращает строку, представляющую текущий объект. Returns a string that represents the current object.
(Унаследовано от Object)
Явные реализации интерфейса
Копирует целый массив ReadOnlyCollectionBase в совместимый одномерный массив Array, начиная с заданного индекса целевого массива. Copies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.
(Унаследовано от ReadOnlyCollectionBase)
Возвращает значение, указывающее на то, является ли доступ к объекту ReadOnlyCollectionBase синхронизированным (потокобезопасным). Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe).
(Унаследовано от ReadOnlyCollectionBase)
Получает объект, который позволяет синхронизировать доступ к объекту ReadOnlyCollectionBase. Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object.
(Унаследовано от ReadOnlyCollectionBase)
Методы расширения
Приводит элементы объекта IEnumerable к заданному типу. Casts the elements of an IEnumerable to the specified type.
Выполняет фильтрацию элементов объекта IEnumerable по заданному типу. Filters the elements of an IEnumerable based on a specified type.
Позволяет осуществлять параллельный запрос. Enables parallelization of a query.
Преобразовывает коллекцию IEnumerable в объект IQueryable. Converts an IEnumerable to an IQueryable.
Data Object Класс
Определение
Реализует основной механизм передачи данных. Implements a basic data transfer mechanism.
Примеры
В следующем примере кода добавляются данные в DataObject . The following code example adds data in a DataObject. Сначала создается новый объект, DataObject а в нем сохраняется компонент. First, a new DataObject is created and a component is stored in it. Затем он проверяет наличие данных в соответствующем типе в DataObject . Then, it checks to see if data in the appropriate type exists in the DataObject. Результат отображается в текстовом поле. The result is displayed in a text box. Для этого кода требуется, чтобы был textBox1 создан. This code requires that textBox1 has been created.
В следующем примере извлекаются данные, хранящиеся в DataObject . The next example retrieves the data stored in a DataObject. Во-первых, DataObject создается новый объект с текстовыми данными. First, a new DataObject is created with text data. Затем извлекаются данные, задаются их формат в виде строки и отображаются в текстовом поле. Then, the data is retrieved, specifying its format as a string, and displayed in a text box. Формат данных автоматически преобразуется из текста в строку. The data format is automatically converted from text to string. Для этого кода требуется, чтобы был textBox1 создан. This code requires that textBox1 has been created.
Комментарии
DataObject реализует IDataObject интерфейс, методы которого обеспечивают независимый от формата механизм передачи данных. DataObject implements the IDataObject interface, whose methods provide a format-independent mechanism for data transfer.
DataObjectОбычно используется с Clipboard и в операциях перетаскивания. A DataObject is typically used with the Clipboard and in drag-and-drop operations. DataObjectКласс предоставляет рекомендуемую реализацию IDataObject интерфейса. The DataObject class provides the recommended implementation of the IDataObject interface. Рекомендуется использовать DataObject класс вместо реализации IDataObject самого себя. It is suggested that you use the DataObject class rather than implementing IDataObject yourself.
Несколько фрагментов данных в разных форматах могут храниться в DataObject . Multiple pieces of data in different formats can be stored in a DataObject. Данные извлекаются из DataObject по связанному формату. Data is retrieved from a DataObject by its associated format. Так как целевое приложение может быть неизвестно, можно увеличить вероятность того, что данные будут в соответствующем формате для приложения, поместив данные в DataObject несколько форматов. Because the target application might not be known, you can increase the likelihood that the data will be in the appropriate format for an application by placing the data in a DataObject in multiple formats. См DataFormats . раздел для предопределенных форматов. See DataFormats for the predefined formats. Вы можете реализовать собственный формат, создав экземпляр DataFormats.Format класса. You can implement your own format by creating an instance of the DataFormats.Format class.
Чтобы сохранить данные в DataObject , передайте их в конструктор или вызов SetData . To store data in a DataObject, pass the data to the constructor or call SetData. Вы можете добавлять данные в нескольких форматах DataObject . You can add data in multiple formats to the same DataObject. Если требуется, чтобы данные, добавляемые для извлечения только в собственном формате, вызовите SetData(String, Boolean, Object) с autoConvert параметром, для которого задано значение false . If you want the data you add to be retrieved in its native format only, call SetData(String, Boolean, Object) with the autoConvert parameter set to false .
Данные можно получить из типа DataObject в любом формате, совместимом с GetData . Data can be retrieved from a DataObject in any format which is compatible with GetData. Например, текст можно преобразовать в Юникод. For example, text can be converted to Unicode. Чтобы получить данные в формате, в котором они были сохранены, вызовите GetData с autoConvert параметром, для которого задано значение false . To retrieve data in the format in which it was stored, call GetData with the autoConvert parameter set to false .
Чтобы определить, в каких форматах хранятся данные, вызовите GetFormats . To determine what formats the data is stored in, call GetFormats. Чтобы определить, доступен ли формат, вызовите GetDataPresent его с нужным форматом. To determine if a format is available, call GetDataPresent with the desired format.
В платформа .NET Framework 2,0 DataObject класс предоставляет дополнительные методы, упрощающие работу с данными в общих форматах. In .NET Framework 2.0, the DataObject class provides additional methods that make it easier to work with data in common formats. Чтобы добавить данные определенного формата в DataObject , используйте соответствующий Set метод Format , например SetText . To add data of a particular format to the DataObject, use the appropriate Set Format method, such as SetText. Чтобы получить данные определенного формата из DataObject , сначала вызовите соответствующий Contains метод Format (например, ContainsText ), чтобы определить, DataObject содержит ли данные в этом формате, а затем вызовите соответствующий метод Get Format (например, GetText ), чтобы получить данные, если DataObject они содержат его. To retrieve data of a particular format from the DataObject, first call the appropriate Contains Format method (such as ContainsText) to determine whether the DataObject contains data in that format, then call the appropriate Get Format method (such as GetText) to retrieve the data if the DataObject contains it.
При использовании формата метафайлов с буфером обмена могут потребоваться особые соображения. Special considerations may be necessary when using the metafile format with the Clipboard. Из-за ограничения в текущей реализации DataObject класса формат метафайла, используемый платформа .NET Framework, может не располагаться приложениями, использующими более старый формат метафайла. Due to a limitation in the current implementation of the DataObject class, the metafile format used by the .NET Framework may not be recognized by applications that use an older metafile format. В этом случае необходимо взаимодействовать с интерфейсами прикладного программирования (API) буфера Win32. In this case, you must interoperate with the Win32 Clipboard application programming interfaces (APIs).
Объект должен быть сериализуемым, чтобы его можно было разместить в буфере обмена. An object must be serializable for it to be put on the Clipboard. System.Runtime.SerializationДополнительные сведения о сериализации см. в разделе. See System.Runtime.Serialization for more information on serialization. Если целевому приложению требуется специальный формат данных, то заголовки, добавленные к данным в процессе сериализации, могут помешать приложению распознать ваши данные. If your target application requires a very specific data format, the headers added to the data in the serialization process may prevent the application from recognizing your data. Чтобы сохранить формат данных, добавьте данные в Byte массив MemoryStream и передайте MemoryStream SetData методу. To preserve your data format, add your data as a Byte array to a MemoryStream and pass the MemoryStream to the SetData method.
Конструкторы
Инициализирует новый экземпляр класса DataObject. Initializes a new instance of the DataObject class.
Инициализирует новый экземпляр класса DataObject и добавляет в него указанный объект. Initializes a new instance of the DataObject class and adds the specified object to it.
Инициализирует новый экземпляр класса DataObject и добавляет указанный объект в заданном формате. Initializes a new instance of the DataObject class and adds the specified object in the specified format.
Методы
Показывает, содержит ли объект данные в формате WaveAudio. Indicates whether the data object contains data in the WaveAudio format.
Указывает, содержит ли объект данные, которые имеют формат FileDrop или могут быть преобразованы в этот формат. Indicates whether the data object contains data that is in the FileDrop format or can be converted to that format.
Указывает, содержит ли объект данные, которые имеют формат Bitmap или могут быть преобразованы в этот формат. Indicates whether the data object contains data that is in the Bitmap format or can be converted to that format.
Показывает, содержит ли объект данные в формате UnicodeText. Indicates whether the data object contains data in the UnicodeText format.
Показывает, содержит ли объект текстовые данные в формате, указываемом заданным значением TextDataFormat. Indicates whether the data object contains text data in the format indicated by the specified TextDataFormat value.
Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.
(Унаследовано от Object)
Извлекает аудиопоток из объекта данных. Retrieves an audio stream from the data object.
Возвращает данные, связанные с заданным форматом. Returns the data associated with the specified data format.
Возвращает данные, связанные с указанным форматом, используя параметр автоматического преобразования, чтобы определить необходимость преобразования данных в этот формат. Returns the data associated with the specified data format, using an automated conversion parameter to determine whether to convert the data to the format.
Возвращает данные, связанные с заданным форматом типа класса. Returns the data associated with the specified class type format.
Определяет, связаны ли хранимые в этом экземпляре DataObject данные с указанным форматом и возможно ли их преобразование в этот формат. Determines whether data stored in this DataObject is associated with, or can be converted to, the specified format.
Определяет, содержит ли этот экземпляр DataObject данные в указанном формате или данные, которые можно преобразовать в этот формат. Determines whether this DataObject contains data in the specified format or, optionally, contains data that can be converted to the specified format.
Определяет, связаны ли хранимые в этом экземпляре DataObject данные с указанным форматом и возможно ли их преобразование в этот формат. Determines whether data stored in this DataObject is associated with, or can be converted to, the specified format.
Извлекает из объекта данных коллекцию имен файлов. Retrieves a collection of file names from the data object.
Возвращает список всех форматов, с которыми связаны или в которые могут быть преобразованы данные, хранящиеся в этом экземпляре DataObject. Returns a list of all formats that data stored in this DataObject is associated with or can be converted to.
Возвращает список всех форматов, в которых данные хранятся в этом экземпляре DataObject или в которые они могут быть преобразованы, используя параметр автоматического преобразования для определения необходимости извлечения только собственных форматов данных или всех форматов, в которые данные могут быть преобразованы. Returns a list of all formats that data stored in this DataObject is associated with or can be converted to, using an automatic conversion parameter to determine whether to retrieve only native data formats or all formats that the data can be converted to.
Служит хэш-функцией по умолчанию. Serves as the default hash function.
(Унаследовано от Object)
Извлекает изображение из объекта данных. Retrieves an image from the data object.
Извлекает из объекта данных текст в формате UnicodeText. Retrieves text data from the data object in the UnicodeText format.
Извлекает текстовые данные из объекта данных в формате, указанном заданным значением TextDataFormat. Retrieves text data from the data object in the format indicated by the specified TextDataFormat value.
Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.
(Унаследовано от Object)
Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.
(Унаследовано от Object)
Добавляет в объект данных массив Byte в формате WaveAudio после его преобразования в Stream. Adds a Byte array to the data object in the WaveAudio format after converting it to a Stream.
Добавляет поток Stream в объект данных в формате WaveAudio. Adds a Stream to the data object in the WaveAudio format.
Добавляет указанный объект в DataObject, используя тип объекта в качестве формата данных. Adds the specified object to the DataObject using the object type as the data format.
Добавляет указанный объект в DataObject в заданном формате и указывает возможность преобразования данных в другой формат. Adds the specified object to the DataObject using the specified format and indicating whether the data can be converted to another format.
Добавляет указанный объект в DataObject, используя заданный формат. Adds the specified object to the DataObject using the specified format.
Добавляет указанный объект в DataObject, используя заданный тип в качестве формата. Adds the specified object to the DataObject using the specified type as the format.
Добавляет в объект данных коллекцию имен файлов в формате FileDrop. Adds a collection of file names to the data object in the FileDrop format.
Добавляет объект Image в объект данных в формате Bitmap. Adds an Image to the data object in the Bitmap format.
Добавляет в объект данных текст в формате UnicodeText. Adds text data to the data object in the UnicodeText format.
Добавляет в объект данных текстовые данные в формате, указанном заданным значением TextDataFormat. Adds text data to the data object in the format indicated by the specified TextDataFormat value.
Возвращает строку, представляющую текущий объект. Returns a string that represents the current object.
(Унаследовано от Object)
Явные реализации интерфейса
Создает соединение между объектом данных и приемником уведомлений. Creates a connection between a data object and an advisory sink. Этот метод вызывается объектом, который поддерживает приемник уведомлений и позволяет уведомлять приемник об изменениях в данных объекта. This method is called by an object that supports an advisory sink and enables the advisory sink to be notified of changes in the object’s data.
Разрывает соединение уведомления, которое было ранее установлено. Destroys a notification connection that had been previously established.
Создает объект, который может использоваться для перечисления текущих соединений для рекомендаций. Creates an object that can be used to enumerate the current advisory connections.
Создает объект для перечисления структур FORMATETC для объекта данных. Creates an object for enumerating the FORMATETC structures for a data object. Эти структуры используются в вызовах GetData(FORMATETC, STGMEDIUM) или SetData(FORMATETC, STGMEDIUM, Boolean). These structures are used in calls to GetData(FORMATETC, STGMEDIUM) or SetData(FORMATETC, STGMEDIUM, Boolean).
Предоставляет стандартную структуру FORMATETC, которая логически эквивалентна более сложной структуре. Provides a standard FORMATETC structure that is logically equivalent to a more complex structure. Этот метод применяется, чтобы определить, будут ли две различные структуры FORMATETC возвращать одинаковые данные, что позволяет избежать ненужной повторной отрисовки. Use this method to determine whether two different FORMATETC structures would return the same data, removing the need for duplicate rendering.
Получает данные из исходного объекта данных. Obtains data from a source data object. Метод GetData(FORMATETC, STGMEDIUM), который вызывается объектом-получателем данных, обрабатывает данные, описанные в заданной структуре FORMATETC, и передает их через заданную структуру STGMEDIUM. The GetData(FORMATETC, STGMEDIUM) method, which is called by a data consumer, renders the data described in the specified FORMATETC structure and transfers it through the specified STGMEDIUM structure. Затем вызывающий объект несет ответственность за освобождение структуры STGMEDIUM. The caller then assumes responsibility for releasing the STGMEDIUM structure.
Получает данные из исходного объекта данных. Obtains data from a source data object. Этот метод, который вызывается объектом-получателем данных, отличается от метода GetData(FORMATETC, STGMEDIUM), в котором вызывающий объект должен выделить и освободить заданную среду хранения. This method, which is called by a data consumer, differs from the GetData(FORMATETC, STGMEDIUM) method in that the caller must allocate and free the specified storage medium.
Определяет, способен ли объект данных выполнять отрисовку данных, описанных в структуре FORMATETC. Determines whether the data object is capable of rendering the data described in the FORMATETC structure. Объекты, пытающиеся выполнять операцию вставки или перетаскивания, могут вызывать этот метод перед вызовом GetData(FORMATETC, STGMEDIUM), чтобы получить указание о том, может ли операция быть успешной. Objects attempting a paste or drop operation can call this method before calling GetData(FORMATETC, STGMEDIUM) to get an indication of whether the operation may be successful.
Передает данные в объект, реализующий этот метод. Transfers data to the object that implements this method. Этот метод вызывается объектом, содержащим источник данных. This method is called by an object that contains a data source.