AnnotationService.GetService Método

Definición

Devuelve el AnnotationService asociado a un control de visualización de documentos especificado.

Sobrecargas

Nombre Description
GetService(FlowDocumentReader)

Devuelve el AnnotationService objeto asociado a un especificado FlowDocumentReader.

GetService(FlowDocumentScrollViewer)

Devuelve el AnnotationService objeto asociado a un especificado FlowDocumentScrollViewer.

GetService(DocumentViewerBase)

Devuelve la AnnotationService instancia asociada a un control de visualización de documentos especificado.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

GetService(FlowDocumentReader)

Devuelve el AnnotationService objeto asociado a un especificado FlowDocumentReader.

public:
 static System::Windows::Annotations::AnnotationService ^ GetService(System::Windows::Controls::FlowDocumentReader ^ reader);
public static System.Windows.Annotations.AnnotationService GetService(System.Windows.Controls.FlowDocumentReader reader);
static member GetService : System.Windows.Controls.FlowDocumentReader -> System.Windows.Annotations.AnnotationService
Public Shared Function GetService (reader As FlowDocumentReader) As AnnotationService

Parámetros

reader
FlowDocumentReader

Control lector de documentos para el que se va a devolver la AnnotationService instancia.

Devoluciones

AnnotationService Asociado al control de lector de documentos especificado; o null si el lector de documentos especificado no AnnotationServicetiene .

Excepciones

reader es null.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

Consulte también

Se aplica a

GetService(FlowDocumentScrollViewer)

Devuelve el AnnotationService objeto asociado a un especificado FlowDocumentScrollViewer.

public:
 static System::Windows::Annotations::AnnotationService ^ GetService(System::Windows::Controls::FlowDocumentScrollViewer ^ viewer);
public static System.Windows.Annotations.AnnotationService GetService(System.Windows.Controls.FlowDocumentScrollViewer viewer);
static member GetService : System.Windows.Controls.FlowDocumentScrollViewer -> System.Windows.Annotations.AnnotationService
Public Shared Function GetService (viewer As FlowDocumentScrollViewer) As AnnotationService

Parámetros

viewer
FlowDocumentScrollViewer

Control visor de documentos para el que se va a devolver la AnnotationService instancia.

Devoluciones

AnnotationService Asociado al control de visor de documentos especificado; o null si el control de visor especificado no AnnotationServicetiene .

Excepciones

viewer es null.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

Consulte también

Se aplica a

GetService(DocumentViewerBase)

Devuelve la AnnotationService instancia asociada a un control de visualización de documentos especificado.

public:
 static System::Windows::Annotations::AnnotationService ^ GetService(System::Windows::Controls::Primitives::DocumentViewerBase ^ viewer);
public static System.Windows.Annotations.AnnotationService GetService(System.Windows.Controls.Primitives.DocumentViewerBase viewer);
static member GetService : System.Windows.Controls.Primitives.DocumentViewerBase -> System.Windows.Annotations.AnnotationService
Public Shared Function GetService (viewer As DocumentViewerBase) As AnnotationService

Parámetros

viewer
DocumentViewerBase

Control de visualización de documentos para el que se va a devolver la AnnotationService instancia.

Devoluciones

AnnotationService Asociado al control de visualización de documentos especificado; o null si el control de visualización de documentos especificado no AnnotationServicetiene .

Excepciones

viewer es null.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

Consulte también

Se aplica a