IEditorOptions.Parent 属性

定义

获取或设置此选项集的直接父级。 如果这组选项没有父范围 (因为它是全局范围) ,则此属性为 null,因此无法设置。

public:
 property Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ Parent { Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ get(); void set(Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ value); };
public:
 property Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ Parent { Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ get(); void set(Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ value); };
public Microsoft.VisualStudio.Text.Editor.IEditorOptions Parent { get; set; }
member this.Parent : Microsoft.VisualStudio.Text.Editor.IEditorOptions with get, set
Public Property Parent As IEditorOptions

属性值

IEditorOptions

父范围。

注解

调用 set 时,新父代必须为非 null,并且是从与此实例相同的 IEditorOptions 创建的其他实例 IEditorOptionsFactoryService 。 此外,不允许使用父链中的循环。

适用于