Version

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.

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

The new foreground brush

Change the Background Color

The new background brush

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

An instance of the FontFamily class

Change the Line Number Margin font style

A field of the FontStyles class

Change the Line Number Margin font weight

A field of the FontWeights class

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.