[ROOT] / doc / DocFrag / ARCDoc.Extensions.ToHTMLSimpleSingle
| Key | Value |
|---|---|
| Assembly | ARCDoc |
| DocFragType | ClassMember |
| IsInherited | -False- |
| IsInheritedDoc | -False- |
| Lines | -25- |
| Name | ToHTMLSimpleSingle |
| Namespace | ARCDoc |
| Type | Extensions |
ClassMemberAttribute
| Key | Value |
|---|---|
| DeclaringType | Extensions |
| MethodName | ToHTMLSimpleSingle |
| MethodSignature | System.String ToHTMLSimpleSingle(ARCCore.IP, Boolean, System.Collections.Generic.List`1[ARCCore.IKCoded]) |
Creates a simple HTML representation of the given parameter.
The properties are shown as a two column table with heading Key and Value.
By simple we mean that no Javascript library is involved, only standard HTML, CSS and Javascript.
By single we mean that no recursion will be performed (for recursion see Create).
For all properties it is assumed that they can be linked to with the given link context plus the ToString value as reference.
If the link context contains a '*', it is assumed that from that level and down the hierarchical structure has been flattened into a single HTML page page, in other words, that the links are internally on the same page.This is in order to accompany wildcards in REST queries like 'RQ/Assembly/ARCCore/Class/ActualConnection/*.html'.
If you have a specific implementation of IP that needs a different HTML representation than what is offered by this method, then you can just implement a method with this same signature for that implementation.
Note that ARCAPI offers additional functionality for generating HTML views.
For instance this method is not very well suited to represent a uniform collection of objects, something which ARCAPI offers.
In other words, this method is very suitable for representing a single 'Customer' object, but not a uniform collection of 'Customer' objects.
NOTE: If you actually implement this method (ToHTMLSimpleSingle) in your own class
NOTE: (something which you quite naturally will want to do).
NOTE: then it would by default (in .NET) not be called if the (statically known) type of the object
NOTE: at the time of invocation was IP (instead of the actual type).
NOTE:
NOTE: This extension method therefore uses reflection in order to look for a specific implementation NOTE: in the (dynamically known) type of the IP parameter NOTE: and calls that method instead if found.
NOTE:
NOTE: See this article for more information
NOTE: https://stackoverflow.com/questions/30645441/extension-methods-with-base-and-sub-classes
Generated 2025-10-29 17:25:27.795 UTC