# TextFields class

Namespace: [Rhino.Runtime](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.runtime.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public static class TextFields
```

This Class Processes Text Field Functions

## Methods

- [Area](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/area.md): (2 overloads, static) Returns the area value for a selected object id in a specified unit system
- [BlockAttributeText](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/blockattributetext.md): (static) User text associated with a block
- [BlockDescription](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/blockdescription.md): (static) Returns a block definition description
- [BlockInsertionCoordinate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/blockinsertioncoordinate.md): (static) Returns the insertion coordinate of a block instance. If the field is being evaluated from text inside a block instance, the immediate parent block instance is used.
- [BlockInstanceCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/blockinstancecount.md): (static) Returns the number of block instances found in the document with the specified block definition name or the instance reference id.
- [BlockInstanceName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/blockinstancename.md): (static) Returns the block definition name of a block instance Use BlockName Instead
- [BlockName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/blockname.md): (static) Returns the block definition name of a block instance
- [CurveLength](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/curvelength.md): (2 overloads, static) Get length of a curve given a string id in a specified unit system. UnitSystem enumeration as string
- [Date](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/date.md): (3 overloads, static) Current date
- [DateModified](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/datemodified.md): (3 overloads, static) Date the document was last edited
- [DetailScale](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/detailscale.md): (static) Returns a detail views scale
- [DimValue](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/dimvalue.md): (2 overloads, static) Returns the measured value of a dimension formatted with the named annotation style.
- [DocumentText](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/documenttext.md): (static) Return document user string for a given key
- [FileName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/filename.md): (2 overloads, static) Return full path to the document
- [GetInstanceAttributeFields](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/getinstanceattributefields.md): (3 overloads, static)
- [LayerName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/layername.md): (static) Returns the name of a layer based on the layers guid
- [LayoutUserText](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/layoutusertext.md): (2 overloads, static) Returns a value from the active layouts user text strings for the specified key.
- [ModelUnits](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/modelunits.md): (static)
- [Notes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/notes.md): (static) Notes for a RhinoDoc
- [NumPages](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/numpages.md): (static) Number of layout pages in a document
- [ObjectLayer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/objectlayer.md): (static) Return an object's layer name
- [ObjectName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/objectname.md): (2 overloads, static) Returns an attached Text objects attribute name.
- [ObjectPageName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/objectpagename.md): (static) Returns the layout page name the object resides on
- [ObjectPageNumber](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/objectpagenumber.md): (static) Returns the layout page number the object resides on
- [PageHeight](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/pageheight.md): (static) Return the current layout page height in the layout units
- [PageName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/pagename.md): (2 overloads, static) Return the current layout page name
- [PageNumber](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/pagenumber.md): (static) Returns the current layouts page number
- [PageWidth](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/pagewidth.md): (static) Return the current layout page width in the layout units
- [PaperName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/papername.md): (static) Returns the layouts selected paper name example Letter / A4 / A6
- [PointCoordinate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/pointcoordinate.md): (static) returns the location of a 3d point
- [TryFormat](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/tryformat.md): (2 overloads, static) Formats the contents of a text string with field expressions and returns the result. The text is evaluated with no object context, which suits fields that read only the document, such as Date or ModelUnits. Fields that read the object itself or the block instance enclosing it - user text, for example - cannot resolve this way and will come back empty; use the overload that takes the object and its parents for those.
- [TryParse](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/tryparse.md): (static) Evaluates the contents of a text string with field expressions and returns the result
- [UserText](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/usertext.md): (3 overloads, static) User text associated with an object, block or layout
- [Volume](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.textfields/volume.md): (3 overloads, static) Returns a volume; if the opt param is a bool "true/false" or "1/0" then open objects are inspected or ignored. if the opt param is a unit system as a string "millimeter" then the volume will be returned if the object is closed and in the specified unit system. Open objects return 0
