<!-- $XConsortium: TxtPosit.sgm /main/9 1996/09/08 21:18:54 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN530.rsml.1">
<RefMeta>
<RefEntryTitle>XmTextPosition</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><StructName Role="typedef">XmTextPosition</StructName></RefName>
<RefPurpose>Data type for a character position within a text string
<IndexTerm>
<Primary>XmTextPosition</Primary>
</IndexTerm><IndexTerm>
<Primary>data types</Primary>
<Secondary>XmTextPosition</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<Synopsis>&npzwc;#include &lt;Xm/Xm.h>
</Synopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><StructName Role="typedef">XmTextPosition</StructName>
is an integer data type that holds a character's position within
a text string for
Text and TextField.
</Para>
<Para>An <StructName Role="typedef">XmTextPosition</StructName> value conceptually points to the gap
between two characters.
For example, consider a text string consisting of <Literal>N</Literal> characters.
A value of 0 refers to the position immediately prior to the first character.
A value of 1 refers to the position in between the first and second characters.
A value of <Literal>N</Literal> refers to the position immediately following the last
character. Therefore, the text string of <Literal>N</Literal> characters
actually contains <Literal>N + 1</Literal> positions.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmText;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
