The LabelDataFormat object class is a general purpose class used in conjunction with the AddLabelData() method of the RTFPlus object class. The object contains no methods and has only 5 Public Properties which are outlined below.
Public Properties
Name |
Data Type |
Description |
---|---|---|
AddNewLineAfter |
Boolean |
Default = True. Indicates whether a new line should be entered after the Label/Data. |
BoldData |
Boolean |
Default = False. Indicates whether the Data value in the call to AddLabelData() should be bold. |
BoldLabel |
Boolean |
Default = True. Indicates whether the Label value in the call to AddLabelData() should be bold. |
DataColor |
Color |
Default = Color.Black. Indicates what the Forecolor of the Data value in the call to AddLabelData() should be. |
LabelColor |
Color |
Default = Color.Black. Indicates what the Forecolor of the Label value in the call to AddLabelData() should be. |
*All example code is in Visual Basic.Net
'Where MyController is a HL7PlusController object Dim RT1 As New RTFPlus(MyController) With RT1 sBuff = "Now we'll show some uses of the Label/Data methods." .AddLine(sBuff) Dim oFMT As New LabelDataFormat With oFMT .AddNewLineAfter = True .BoldData = False .BoldLabel = True .LabelColor = Color.Black .DataColor = Color.Blue End With .AddLabelData("This is a Label:", "This Is Some Data", oFMT) oFMT.AddNewLineAfter = False .AddLabelData("Label 1:", "Data 1. Next Label on same line.", oFMT) oFMT.DataColor = Color.Red .AddLabelData("Label 2 (Warning):", "Data 2 In Red", oFMT) .AddLines(2) RTBox1.Rtf = .RTF End With
|