Difference between revisions of "Documentation/DevGuide/AppendixA/Parameter"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Appendix) |
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Appendix) |
||
Line 26: | Line 26: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category:Documentation/ | + | [[Category:Documentation/Developer's Guide/Appendix]] |
Revision as of 07:18, 5 June 2008
Parameters are names for arguments of methods.
Naming
Argument identifiers begin with a special lowercase letter as a prefix and put in initial caps later, for example, nItemCount.
Use the following prefixes:
- 'x' for interfaces
- 'b' for boolean values
- 'n' for integer numbers
- 'f' for floating point numbers
- 'a' for all other types. These are represented as classes in programming languages.
Usage
The order of parameters is defined by the following rule: Where, What, How. Within these groups, order by importance. For example, insertContent(USHORT nPos
, XContent
xContent
,and boolean bAllowMultiInsert
.
Content on this page is licensed under the Public Documentation License (PDL). |