LabelVisible

From OriginLab Wiki

(Difference between revisions)(Link to this page as [[OriginCOM:Worksheet-LabelVisible]])
Jump to: navigation, search
Revision as of 21:06, 16 July 2008 (edit)
Cieland (Talk | contribs)
(Parameters)
← Previous diff
Revision as of 10:02, 20 August 2008 (edit) (undo)
Uploader (Talk | contribs)

Next diff →
Line 18: Line 18:
==Parameters== ==Parameters==
-;Type+ 
-:one of the [[OriginCOM:LABELTYPEVALS|LABELTYPEVALS]] enumeration. For example LT_LONG_NAME+
==Remark== ==Remark==
Line 25: Line 24:
==Examples== ==Examples==
-===VBA=== 
-Connect to the running Origin. We will set some labels of the sheet as visible. You can see result in Origin. Then, get the status of all labels, and output them to Excel sheet. 
-<vb> 
-Public Sub getLabelVisible() 
- Dim app As Origin.ApplicationSI 
- Dim Wks As Origin.Worksheet 
- Dim Data(1 To 100) As Double 
- Dim bRet As Boolean 
- Dim ii As Integer 
- For ii = 1 To 100 
- Data(ii) = ii * 0.375 + 274 
- Next 
-  
- Set app = New Origin.ApplicationSI 
- Set Wks = app.FindWorksheet("") 
-  
- 'Set labels as visible 
- Wks.Labels ("LUSE") 'Set "LongName", "Units", "Spark line" and "Even Sampling" labels as visible 
-  
- Wks.Columns(0).LongName = "Temperature" 
- Wks.Columns(0).Units = "C degree" 
- bRet = Wks.Columns(0).SetEvenSampling(0, 20) 
-  
- 'Send data to the column 
- Wks.Columns(0).SetData (Data) 
-  
- 'Get status from Origin, and output to Excel sheet 
- Range("A1") = Wks.LabelVisible(LT_LONG_NAME) 
- Range("A2") = Wks.LabelVisible(LT_UNIT) 
- Range("A3") = Wks.LabelVisible(LT_COMMENT) 
- Range("A4") = Wks.LabelVisible(LT_SPARKLINE) 
- Range("A5") = Wks.LabelVisible(LT_SAMPLE_RATE) 
- Range("A6") = Wks.LabelVisible(LT_PARAM) 
- Range("A7") = Wks.LabelVisible(LT_USER_DEF_LABEL) 
-  
-End Sub 
-</vb> 
-===C#=== 
==Version Information== ==Version Information==
Line 69: Line 30:
==See Also== ==See Also==
-[[OriginCOM:Worksheet-Labels|Labels]] | [[OriginCOM:OriginObject-LongName|Column.LongName]] | [[OriginCOM:Column-Units|Column.Units]] | [[OriginCOM:Column-Comments|Column.Comments]]  
- 
- 
-[[Category:P0|Sarah]] 

Revision as of 10:02, 20 August 2008


Contents

Description

Syntax

VB: Property Get/Let LabelVisible(Type As ByVal LABELTYPEVALS ) As Boolean
C++: bool LabelVisible(LABELTYPEVALS Type )
C#: bool LabelVisible(LABELTYPEVALS Type )

Parameters

Remark

Examples

Version Information

8.0SR2

See Also