We're sorry but this site requires JavaScript.
Is this content useful?
Thank you for your feedback!
Thank you for your feedback! You have rated this topic in the last 30 days.
Line Number Margin (xamSyntaxEditor)
Topic Overview
Purpose
This topic describes the use and configuration of the xamSyntaxEditor™ control’s built-in Line Number Margin.
Required background
The following topics are prerequisites to understanding this topic:
Topic
Purpose
In this topic, you will find information to help you better understand the xamSyntaxEditor’s functions.
In this topic
This topic contains the following sections:
Introduction
Line number margin summary
The line number margin is the xamSyntaxEditor ‘s built-in margin ; enabled by default. Positioned on the left edge of the editing area and shows each line number. There are several configurable aspects of the line number margin using the properties listed below.
Line Number Margin Configuration Summary
Configuration summary chart
The following table lists the configurable aspects of the Line Number Margin. Additional details are available after the table.
Configurable aspect
Details
Properties
Configure the colors used by the Line Number Margin.
Configure the font and styles used by the Line Number Margin.
Configure whether the Line Number Margin is visible or hidden.
Show/Hide
Overview
Configure whether the Line Number Margin is visible or hidden.
Property settings
The following table maps the desired configuration to property settings.
In order to:
Use this property:
And set it to:
Show or hide the Line Number Margin
True (for visible)
False (for hidden)
Color Change
Overview
Configure the colors used by the Line Number Margin.
Property settings
The following table maps the desired configuration to property settings.
In order to:
Use this property:
And set it to:
Change the Foreground Color
Change the Background Color
Font Change
Overview
Configure the font and styles used by the Line Number Margin.
Property settings
The following table maps the desired configuration to property settings.
In order to:
Use this property:
And set it to:
Change the Line Number Margin font family
Change the Line Number Margin font style
Change the Line Number Margin font weight
Related Topics
The following topics provide additional information related to this topic.
Topic
Purpose
This topic explains how to configure the ruler margin feature.
This topic explains how to create your own margins.