Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Obtiene las descripciones de los elementos decorator de compartimiento.
Espacio de nombres: Microsoft.VisualStudio.Modeling.Diagrams
Ensamblado: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (en Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Sintaxis
'Declaración
Public Overridable Function GetCompartmentDescriptions As CompartmentDescription()
public virtual CompartmentDescription[] GetCompartmentDescriptions()
Valor devuelto
Tipo: array<Microsoft.VisualStudio.Modeling.Diagrams.CompartmentDescription[]
Las descripciones de los elementos decorator de compartimiento.
Ejemplos
public override DslDiagrams::CompartmentDescription[] GetCompartmentDescriptions()
{
if(compartmentDescriptions == null)
{
// Initialize the array of compartment descriptions if we haven't done so already.
// First we get any compartment descriptions in base shapes, and add on any compartments
// that are defined on this shape.
DslDiagrams::CompartmentDescription[] baseCompartmentDescriptions = base.GetCompartmentDescriptions();
int localCompartmentsOffset = 0;
if(baseCompartmentDescriptions!=null)
{
localCompartmentsOffset = baseCompartmentDescriptions.Length;
}
compartmentDescriptions = new DslDiagrams::ElementListCompartmentDescription[1+localCompartmentsOffset];
if(baseCompartmentDescriptions!=null)
{
baseCompartmentDescriptions.CopyTo(compartmentDescriptions, 0);
}
{
string title = global::Microsoft.Example.ClassDiagrams.ClassDiagrams.SingletonResourceManager.GetString("InterfaceShapeOperationsCompartmentTitle");
compartmentDescriptions[localCompartmentsOffset+0] = new DslDiagrams::ElementListCompartmentDescription("OperationsCompartment", title,
global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightGray), false,
global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.White), false,
null, null,
false);
}
}
return InterfaceShape.compartmentDescriptions;
}
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.Modeling.Diagrams (Espacio de nombres)