Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== GetTextColor ====== Method of [[:scripting:api:list-item:start|IListItem]] ===== Description ===== Gets item text color by position; nItem = -1 for line color ===== Parameters ===== * [[scripting:api:data-type:long|long]] **nItem** = -1 (optional) ==== Return Value ==== * [[scripting:api:data-type:OLE_COLOR|OLE_COLOR]] **pclr** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pclr = ListItem.GetTextColor(nItem); </code>==== Visual Basic Script ==== <code vb> pclr = ListItem.GetTextColor nItem </code>==== C++ ==== <code cpp> OLE_COLOR pclr; HRESULT hr = ListItem.GetTextColor(nItem, &pclr); </code>===== See Also ===== [[:scripting:api:list-item:start|IListItem]] ~~NOTOC~~