OPC Studio User's Guide and Reference
StringFormat Property (AbstractBinding)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveBinding Namespace > AbstractBinding Class : StringFormat Property
A string that specifies how to format the bound value. An empty string means no formatting.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Property StringFormat As String
'Usage
 
Dim instance As AbstractBinding
Dim value As String
 
instance.StringFormat = value
 
value = instance.StringFormat
[NotNull()]
public string StringFormat {get; set;}
[NotNull()]
public:
property String^ StringFormat {
   String^ get();
   void set (    String^ value);
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

The default value of this property is "" (String.Empty).

Remarks
The format string is constructed according to usual .NET rules, and can contain following placeholders:
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also