Click or drag to resize

PaddingLayoutRendererWrapper Class

Applies padding to another layout output.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      NLog.LayoutRenderers.WrappersPaddingLayoutRendererWrapper

Namespace:  NLog.LayoutRenderers.Wrappers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public sealed class PaddingLayoutRendererWrapper : WrapperLayoutRendererBase

The PaddingLayoutRendererWrapper type exposes the following members.

Constructors
  NameDescription
Public methodPaddingLayoutRendererWrapper
Initializes a new instance of the PaddingLayoutRendererWrapper class
Top
Properties
  NameDescription
Public propertyAlignmentOnTruncation
Gets or sets a value indicating whether a value that has been truncated (when FixedLength is true) will be left-aligned (characters removed from the right) or right-aligned (characters removed from the left). The default is left alignment.
Public propertyFixedLength
Gets or sets a value indicating whether to trim the rendered text to the absolute value of the padding length.
Public propertyInner
Gets or sets the wrapped layout. [DefaultParameter] so Inner: is not required if it's the first
(Inherited from WrapperLayoutRendererBase.)
Public propertyPadCharacter
Gets or sets the padding character.
Public propertyPadding
Gets or sets the number of characters to pad the output to.
Top
Methods
  NameDescription
Public methodRender
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from LayoutRenderer.)
Top
Remarks
See Also