RVTDocs.com
Namespace: Autodesk.Revit.DB Class: TextElement

TextElement.GetMaximumAllowedWidth(Document, ElementId)

Method
Description:
Returns the maximum width the text element can be created with.
Remarks:
Note that it is not necessarily a constant; it can be affected by properties of the text type, such as the width factor.
Syntax
public static double GetMaximumAllowedWidth(
	Document cdda,
	ElementId typeId
)
Parameters
Parameter Type Description
cdda Document A document containing the new text element's type
typeId ElementId Id of the text type
Return Value
Type Description
Double The maximum allowed width in paper space [ft].
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null