<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Text_Object_Model</id>
	<title>Text Object Model - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Text_Object_Model"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Text_Object_Model&amp;action=history"/>
	<updated>2026-09-10T23:24:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Text_Object_Model&amp;diff=6045464&amp;oldid=prev</id>
		<title>imported&gt;DanielRigal: deprod</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Text_Object_Model&amp;diff=6045464&amp;oldid=prev"/>
		<updated>2025-03-18T00:13:57Z</updated>

		<summary type="html">&lt;p&gt;deprod&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Microsoft Windows programming interface}}&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Text Object Model&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;TOM&amp;#039;&amp;#039;&amp;#039;) is a [[Microsoft Windows]] [[Application Programming Interface|API]] that provides developers with object-based rich text manipulation interfaces. It is implemented through [[Component Object Model|COM]], and can be accessed through [[Microsoft Word]] or additionally through the RichEdit controls that normally ship with Windows.&amp;lt;ref name=&amp;quot;tom_msdn&amp;quot;&amp;gt;{{cite web|url=http://msdn.microsoft.com/en-us/library/windows/desktop/bb787607.aspx|title=Text Object Model|accessdate=2011-12-04}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
When TOM was developed, it was influenced heavily by WordBasic,&amp;lt;ref name=&amp;quot;tom_msdn&amp;quot; /&amp;gt; a [[macro language]] used within Word before [[Visual Basic for Applications|VBA]] ([[Microsoft Word#Word 1990 to 1995|Word 95]] and previous releases). TOM has developed alongside the RichEdit technology, and has been present since version 1.0 of the RichEdit components.&amp;lt;ref name=&amp;quot;richedit_2006&amp;quot;&amp;gt;{{cite web|url=https://learn.microsoft.com/en-us/archive/blogs/murrays/richedit-versions|title=RichEdit versions|date=13 October 2006 |accessdate=2023-11-19}}&amp;lt;/ref&amp;gt; The API has been available as an option for [[Windows CE]] since the 2.5 release of RichEdit (Western Languages Only), which was at least used by [[Microsoft Office Mobile#Word Mobile|Pocket Word]] at that time.&amp;lt;ref name=&amp;quot;richedit_2006&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Version 8.0 of RichEdit, which shipped with [[Windows 8]], added support for [[OpenType math]].&amp;lt;ref&amp;gt;{{Cite web|url=http://blogs.msdn.com/b/murrays/archive/2012/03/03/richedit-8-0-preview.aspx|title = DevBlogs}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Technical details==&lt;br /&gt;
To retrieve an implemented instance of &amp;lt;code&amp;gt;ITextDocument&amp;lt;/code&amp;gt; [[interface (object-oriented programming)|interface]] (the top-level document interface), the &amp;lt;code&amp;gt;EM_GETOLEINTERFACE&amp;lt;/code&amp;gt; message may be sent via the [http://msdn2.microsoft.com/en-us/library/ms644950.aspx SendMessage] API to obtain a pointer to an &amp;lt;code&amp;gt;IRichEditOle&amp;lt;/code&amp;gt; object, which also implements the &amp;lt;code&amp;gt;ITextDocument&amp;lt;/code&amp;gt; interface.&amp;lt;ref name=&amp;quot;tom_msdn&amp;quot; /&amp;gt; TOM may operate differently depending on the version of the RichEdit control the interface is retrieved for (RICHEDIT50W windows provide more functionality than the standard RICHEDIT20W or RICHEDIT20A controls, like proper table support).&amp;lt;ref name=&amp;quot;richedit_2006&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===COM Interfaces===&lt;br /&gt;
;ITextDocument&lt;br /&gt;
:A top-level interface. Documents may be opened and saved through this interface. Some screen update control is achieved here as well. Undo/redo grouping is implemented here. Arbitrary text ranges (&amp;#039;&amp;#039;&amp;#039;ITextRange&amp;#039;&amp;#039;&amp;#039;) and a text range for currently selected text (&amp;#039;&amp;#039;&amp;#039;ITextSelection&amp;#039;&amp;#039;&amp;#039;) are provided, which are used to modify or review the document.&lt;br /&gt;
;ITextRange&lt;br /&gt;
:Provides editing and data-binding tools to select text within a document, that can be examined, modified, or removed. Ranges exist within paragraphs, and the paragraph a range is within is accessible through a property of this object.&lt;br /&gt;
:;ITextSelection&lt;br /&gt;
::Provides selection information, in addition to functionality provided by the &amp;#039;&amp;#039;&amp;#039;ITextRange&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
;ITextFont&lt;br /&gt;
:Dual Interface with &amp;#039;&amp;#039;&amp;#039;ITextPara&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:A mechanism for inspection and modification of rich edit font attributes, that is considerably more extensive that the standard OLE interface used to describe a font (IFontDisp, StdFont).&lt;br /&gt;
;ITextPara&lt;br /&gt;
:Dual Interface with &amp;#039;&amp;#039;&amp;#039;ITextFont&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Provides extensive information about the position, formatting outside of fonts (e.g. first line indent), behavior (e.g. widow control), and purpose of a paragraph (it could be a normal paragraph, a list, a table, etc).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Rich Text Format]]&lt;br /&gt;
*[[Component Object Model]] (COM)&lt;br /&gt;
*[[Object Linking and Embedding]] (OLE)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://msdn2.microsoft.com/en-us/library/bb787607.aspx Text Object Model Overview]&lt;br /&gt;
*[http://msdn2.microsoft.com/en-us/library/bb788041.aspx Obtaining the TOM Object for a RichEdit Control]&lt;br /&gt;
*[http://blogs.msdn.com/b/murrays/archive/2010/01/13/richedit-versions-1-0-through-3-0.aspx Historical RichEdit/TOM information] ([https://web.archive.org/web/20160304063220/http://blogs.msdn.com/b/murrays/archive/2010/01/13/richedit-versions-1-0-through-3-0.aspx WebArchive link])&lt;br /&gt;
*[https://www.brad-smith.info/blog/projects/textobjectmodel TOM Classes for .NET]&lt;br /&gt;
&lt;br /&gt;
{{Microsoft APIs}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Microsoft application programming interfaces]]&lt;/div&gt;</summary>
		<author><name>imported&gt;DanielRigal</name></author>
	</entry>
</feed>