ISpaceReservationManager.CreatePopupAgent Method
Creates a default implementation of an ISpaceReservationAgent that displays its content in a popup window.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Dichiarazione
Function CreatePopupAgent ( _
visualSpan As ITrackingSpan, _
style As PopupStyles, _
content As UIElement _
) As ISpaceReservationAgent
ISpaceReservationAgent CreatePopupAgent(
ITrackingSpan visualSpan,
PopupStyles style,
UIElement content
)
ISpaceReservationAgent^ CreatePopupAgent(
ITrackingSpan^ visualSpan,
PopupStyles style,
UIElement^ content
)
abstract CreatePopupAgent :
visualSpan:ITrackingSpan *
style:PopupStyles *
content:UIElement -> ISpaceReservationAgent
function CreatePopupAgent(
visualSpan : ITrackingSpan,
style : PopupStyles,
content : UIElement
) : ISpaceReservationAgent
Parameters
- visualSpan
Type: Microsoft.VisualStudio.Text.ITrackingSpan
The span of text associated with the popup window.
- style
Type: Microsoft.VisualStudio.Text.Adornments.PopupStyles
The style options for displaying the popup window.
- content
Type: System.Windows.UIElement
The UI element to be displayed in the popup window.
Return Value
Type: Microsoft.VisualStudio.Text.Editor.ISpaceReservationAgent
An ISpaceReservationAgent that displays the content in a popup window.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.