SelectionRangeConverter.CreateInstance Method
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.
Creates a SelectionRange object by using the specified type descriptor and set of property values for that object.
public:
override System::Object ^ CreateInstance(System::ComponentModel::ITypeDescriptorContext ^ context, System::Collections::IDictionary ^ propertyValues);
public override object CreateInstance (System.ComponentModel.ITypeDescriptorContext context, System.Collections.IDictionary propertyValues);
public override object CreateInstance (System.ComponentModel.ITypeDescriptorContext? context, System.Collections.IDictionary propertyValues);
override this.CreateInstance : System.ComponentModel.ITypeDescriptorContext * System.Collections.IDictionary -> obj
Public Overrides Function CreateInstance (context As ITypeDescriptorContext, propertyValues As IDictionary) As Object
Parameters
- context
- ITypeDescriptorContext
A ITypeDescriptorContext that provides a format context.
- propertyValues
- IDictionary
An IDictionary that contains the new property values.
Returns
If successful, the newly created SelectionRange; otherwise, this method throws an exception.
Exceptions
propertyValues
is null
or its Start
and End
elements could not be converted into a SelectionRange.
Remarks
Use the CreateInstance method to make changes to an existing immutable object by creating a modified version of it. This method expects the propertyValues
parameter to have elements with key values of Start
and End
, each with the corresponding DateTime value.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기