\documentclass{report}
\usepackage{hyperref}
% WARNING: THIS SHOULD BE MODIFIED DEPENDING ON THE LETTER/A4 SIZE
\oddsidemargin 0cm
\evensidemargin 0cm
\marginparsep 0cm
\marginparwidth 0cm
\parindent 0cm
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-2in}


% Conditional define to determine if pdf output is used
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\pdfoutput=1
\pdftrue
\fi

\ifpdf
  \usepackage[pdftex]{graphicx}
\else
  \usepackage[dvips]{graphicx}
\fi

% Write Document information for pdflatex/pdftex
\ifpdf
\pdfinfo{
 /Author     (Pasdoc)
 /Title      ()
}
\fi


% definitons for warning and note tag
\usepackage[most]{tcolorbox}
\newtcolorbox{tcbwarning}{
 breakable,
 enhanced jigsaw,
 top=0pt,
 bottom=0pt,
 titlerule=0pt,
 bottomtitle=0pt,
 rightrule=0pt,
 toprule=0pt,
 bottomrule=0pt,
 colback=white,
 arc=0pt,
 outer arc=0pt,
 title style={white},
 fonttitle=\color{black}\bfseries,
 left=8pt,
 colframe=red,
 title={Warning:},
}
\newtcolorbox{tcbnote}{
 breakable,
 enhanced jigsaw,
 top=0pt,
 bottom=0pt,
 titlerule=0pt,
 bottomtitle=0pt,
 rightrule=0pt,
 toprule=0pt,
 bottomrule=0pt,
 colback=white,
 arc=0pt,
 outer arc=0pt,
 title style={white},
 fonttitle=\color{black}\bfseries,
 left=8pt,
 colframe=yellow,
 title={Note:},
}

\begin{document}
\label{toc}\tableofcontents
\newpage
% special variable used for calculating some widths.
\newlength{\tmplength}
\chapter{Unit ok{\_}property{\_}decl}
\label{ok_property_decl}
\index{ok{\_}property{\_}decl}
\section{Overview}
\begin{description}
\item[\texttt{\begin{ttfamily}TMyClass\end{ttfamily} Class}]
\end{description}
\section{Classes, Interfaces, Objects and Records}
\ifpdf
\subsection*{\large{\textbf{TMyClass Class}}\normalsize\hspace{1ex}\hrulefill}
\else
\subsection*{TMyClass Class}
\fi
\label{ok_property_decl.TMyClass}
\index{TMyClass}
\subsubsection*{\large{\textbf{Hierarchy}}\normalsize\hspace{1ex}\hfill}
TMyClass {$>$} TObject
%%%%Description
\subsubsection*{\large{\textbf{Properties}}\normalsize\hspace{1ex}\hfill}
\begin{list}{}{
\settowidth{\tmplength}{\textbf{MyPropertyDefaultExpression}}
\setlength{\itemindent}{0cm}
\setlength{\listparindent}{0cm}
\setlength{\leftmargin}{\evensidemargin}
\addtolength{\leftmargin}{\tmplength}
\settowidth{\labelsep}{X}
\addtolength{\leftmargin}{\labelsep}
\setlength{\labelwidth}{\tmplength}
}
\label{ok_property_decl.TMyClass-MyProperty}
\index{MyProperty}
\item[\textbf{MyProperty}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property MyProperty[S: string]: Integer read GetMyProperty;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par  \label{ok_property_decl.TMyClass-SelLength}
\index{SelLength}
\item[\textbf{SelLength}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property SelLength: Integer read GetSelLength write SetSelLength;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par From \href{https://github.com/pasdoc/pasdoc/issues/174}{https://github.com/pasdoc/pasdoc/issues/174}\label{ok_property_decl.TMyClass-SelText}
\index{SelText}
\item[\textbf{SelText}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property SelText: string read GetSelText;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par  \label{ok_property_decl.TMyClass-KeyboardType}
\index{KeyboardType}
\item[\textbf{KeyboardType}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property KeyboardType: TVirtualKeyboardType read GetKeyboardType write SetKeyboardType default TVirtualKeyboardType.Default;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par  \label{ok_property_decl.TMyClass-MyPropertyNoDefault}
\index{MyPropertyNoDefault}
\item[\textbf{MyPropertyNoDefault}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property MyPropertyNoDefault: Single nodefault;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par  \label{ok_property_decl.TMyClass-MyPropertyDefaultExpression}
\index{MyPropertyDefaultExpression}
\item[\textbf{MyPropertyDefaultExpression}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property MyPropertyDefaultExpression: Integer default 10 + 20;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par  \label{ok_property_decl.TMyClass-MyPropertyStored}
\index{MyPropertyStored}
\item[\textbf{MyPropertyStored}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property MyPropertyStored: Single stored false;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par  \label{ok_property_decl.TMyClass-MyPropertyStored2}
\index{MyPropertyStored2}
\item[\textbf{MyPropertyStored2}\hfill]
\ifpdf
\begin{flushleft}
\fi
\begin{ttfamily}
public property MyPropertyStored2: Single stored GetStored;\end{ttfamily}

\ifpdf
\end{flushleft}
\fi


\par  \end{list}
\end{document}
