VS:GetTextWidthInPixels: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
Line 5: | Line 5: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<desc> | <desc> | ||
Returns the length of a string in the current port based on the port's text settings.</desc> | |||
</desc> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<def> | <def> | ||
<funcDef lang="vs"> | <funcDef lang="vs"> | ||
FUNCTION GetTextWidthInPixels( | FUNCTION GetTextWidthInPixels(inTextMeasure:STRING) : INTEGER; | ||
</funcDef> | </funcDef> | ||
<funcDef lang="py"> | <funcDef lang="py"> | ||
Line 23: | Line 22: | ||
<lineList ident=1> | <lineList ident=1> | ||
<line> | <line> | ||
inTextMeasure | |||
STRING | STRING | ||
Line 29: | Line 28: | ||
</lineList> | </lineList> | ||
</params> | </params> | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <remark></remark> | ||
</ | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <sample></sample> | ||
</ | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <seeAlso></seeAlso> | ||
</ | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
Availability: from | Availability: from Vectorworks 2014 | ||
</version> | </version> | ||
</vwDoc> | </vwDoc> | ||
[[Category:VS Function Reference|GetTextWidthInPixels]] | [[Category:VS Function Reference|GetTextWidthInPixels]] | ||
[[Category:VS Function Reference: | [[Category:VS Function Reference:Utility|GetTextWidthInPixels]] |
Revision as of 17:38, 18 September 2013
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Returns the length of a string in the current port based on the port's text settings.
FUNCTION GetTextWidthInPixels(
inTextMeasure :STRING) : INTEGER;
def vs.GetTextWidthInPixels(inTextMeasure): return INTEGER
Parameters
inTextMeasure STRING
Version
Availability: from Vectorworks 2014