QuickOPC 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
 
<DefaultValueAttribute("")>
<NotNullAttribute()>
Public Property StringFormat As String
'Usage
 
Dim instance As AbstractBinding
Dim value As String
 
instance.StringFormat = value
 
value = instance.StringFormat
[DefaultValue("")]
[NotNull()]
public string StringFormat {get; set;}
[DefaultValue("")]
[NotNull()]
public:
property String^ StringFormat {
   String^ get();
   void set (    String^ value);
}
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