AnnotationBaseFirstCharProperties Method |
Extracts the font properties (bold, italic, underline, and facename) from the first character run of an RTF string.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntaxpublic static bool FirstCharProperties(
string rtf_str,
ref bool bold,
ref bool italic,
ref bool underline,
ref string facename
)
Public Shared Function FirstCharProperties (
rtf_str As String,
ByRef bold As Boolean,
ByRef italic As Boolean,
ByRef underline As Boolean,
ByRef facename As String
) As Boolean
Parameters
- rtf_str
- Type: SystemString
The RTF string to analyze. - bold
- Type: SystemBoolean
Set to true if the first run is bold; otherwise, false. - italic
- Type: SystemBoolean
Set to true if the first run is italic; otherwise, false. - underline
- Type: SystemBoolean
Set to true if the first run is underlined; otherwise, false. - facename
- Type: SystemString
Receives the font face name of the first run.
Return Value
Type:
BooleanTrue if the properties were successfully extracted; otherwise, false.
Remarks
See Also