WindowConfiguration.Apply أسلوب
استدعاء تم حفظها باسم نافذة تكوين.
مساحة الاسم: EnvDTE
التجميع: EnvDTE (في EnvDTE.dll)
بناء الجملة
'إقرار
Sub Apply ( _
FromCustomViews As Boolean _
)
void Apply(
bool FromCustomViews
)
void Apply(
[InAttribute] bool FromCustomViews
)
abstract Apply :
FromCustomViews:bool -> unit
function Apply(
FromCustomViews : boolean
)
المعلمات
- FromCustomViews
النوع: System.Boolean
إذا كان هذا هو true، المسمى عرض في تكوين النافذة المخصص هو استمرارية الهدف بحث.إذا كان هذا هو false، ثم تعريف المثبتة، مسبقاً الاستمرارية من نافذة يتم البحث في التكوينات.يكون الإعداد الافتراضي هو true.
ملاحظات
يمكنك حفظ تخطيط نافذة الحالي الخاص بك في بيئة Visual Studio كتكوين نافذة مسمى. استخدام Itemأسلوب WindowConfigurationsمجموعة إلى التنقل إلى تكوين المطلوبة، وثم استخدم Applyأسلوب لاسترداد تكوين.
أمثلة
Sub ApplyExample(dte as DTE)
' Set references to all necessary objects.
Dim colWinConfig As WindowConfigurations
Dim objWinConfig As WindowConfiguration
colWinConfig = dte.WindowConfigurations
objWinConfig = colWinConfig.Item(2)
' List the current window configuration, then set it to another
' one.
MsgBox("Current active window configuration: " & _
colWinConfig.ActiveConfigurationName)
objWinConfig.Apply()
MsgBox("Current active window configuration: " & _
colWinConfig.ActiveConfigurationName)
End Sub
void ApplyExample(_DTE dte)
{
// Set references to all necessary objects.
WindowConfigurations colWinConfig;
WindowConfiguration objWinConfig;
colWinConfig = dte.WindowConfigurations;
objWinConfig = colWinConfig.Item(2);
// List the current window configuration, then set it to another
// one.
MessageBox.Show("Current active window configuration: " +
colWinConfig.ActiveConfigurationName);
objWinConfig.Apply(false);
MessageBox.Show("Current active window configuration: " +
colWinConfig.ActiveConfigurationName);
}
أمن NET Framework.
- الثقة الكاملة للمتصل الفوري. يتعذر استخدام هذا العضو بواسطة التعليمات البرمجية الموثوق بها جزئيًا. لمزيد من المعلومات، راجع باستخدام مكتبات من تعليمات برمجية موثوق بها جزئي.