AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • Selection in a Word Processing control
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The property Selection property displays the characteristics of the selection (or cursor):
  • WINDEV in a Word Processing control.
    Note: This selection is located in the part being edited (body, header or footer).
  • WINDEV in a Spreadsheet control.
  • WINDEV in an HTML Editor control
  • in a Diagram Editor control.
Ejemplo
WINDEV
// Get the fragment selected by the user
MySelection is docFragment = WP_Doc.Selection.Fragment
// The user selection is displayed in bold
MySelection.Formatting.FontBold = True
// Get the first text section selected by the user
MySelection1 is docSection = WP_Doc.Selection.Section[1]
// Retrieve the selected elements in a Diagram Editor control
MySelection is diagSelection <- DIAGEDT_MyDiagram.Selection
IF MySelection.Shape.Count > 0 THEN
	// Get the shapes
	FOR EACH stShape OF MySelection.Shape
		STC_SELECTION_INFO = stShape.Name + "has been selected." + 
		" [ " + stShape.X + ", " + stShape.Y + " - " + stShape.Width + 
		"x" + stShape.Height + " ]"
	END
ELSE
	STC_SELECTION_INFO = "Click a shape in the diagram to get the selection"
END
Sintaxis
WINDEV

Retrieving the properties of the selection in a Word Processing control Ocultar los detalles

<Result> = <Word Processing control>.Selection.<Property>
<Result>: Type corresponding to the property used
Expected result (see "Remarks").
<Word Processing control>: Control name
Name of the Word Processing control.
<Property>:
Property to use on the selection (see Remarks).
WINDEV

Retrieving the properties of the selection in a Spreadsheet control Ocultar los detalles

<Result> = <Spreadsheet control>.selection
<Result>: psheetSelection variable
psheetSelection variable describing the selection.
<Spreadsheet control>: Control name
Name of Spreadsheet control.
WINDEV

Retrieving the properties of the selection in an HTML Editor control Ocultar los detalles

<Result> = <HTML Editor control>.selection
<Result>: edtHTMLSelection variable
edtHTMLSelection variable describing the selection.
<HTML Editor control>: Control name
Name of the HTML Editor control.

Retrieving the properties of the selection in a Diagram Editor control Ocultar los detalles

<Result> = <Diagram Editor control>.selection
<Result>: diagSelection variable
diagSelection variable describing the selection.
<Diagram Editor control>: Control name
Name of the Diagram Editor control.
Observaciones
WINDEV

Selection in a Word Processing control

PropertyExplanations
Fragment<Result> corresponds to a docFragment variable containing the characteristics of selected fragment.
Example: <Result> = <Word Processing control>.Selection.Fragment
Section[X]Used to get the section associated with the selection.
  • X corresponds to the number of section to get.
  • <Result> corresponds to a docSection variable containing the characteristics of the section associated with the selection.
Example: <Résultat> = <Champ Traitement de texte>.Selection.Section[1]
Versión mínima requerida
  • Versión 22
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 14/05/2025

Señalar un error o enviar una sugerencia | Ayuda local