IFormattedTextSourceFactoryService.Create-Methode (ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, ITextAndAdornmentSequencer, IClassificationFormatMap)
Erstellt eine IFormattedLineSource für die angegebene Ansichtskonfiguration.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaration
Function Create ( _
sourceTextSnapshot As ITextSnapshot, _
visualBufferSnapshot As ITextSnapshot, _
tabSize As Integer, _
baseIndent As Double, _
wordWrapWidth As Double, _
maxAutoIndent As Double, _
useDisplayMode As Boolean, _
sequencer As ITextAndAdornmentSequencer, _
classificationFormatMap As IClassificationFormatMap _
) As IFormattedLineSource
IFormattedLineSource Create(
ITextSnapshot sourceTextSnapshot,
ITextSnapshot visualBufferSnapshot,
int tabSize,
double baseIndent,
double wordWrapWidth,
double maxAutoIndent,
bool useDisplayMode,
ITextAndAdornmentSequencer sequencer,
IClassificationFormatMap classificationFormatMap
)
IFormattedLineSource^ Create(
ITextSnapshot^ sourceTextSnapshot,
ITextSnapshot^ visualBufferSnapshot,
int tabSize,
double baseIndent,
double wordWrapWidth,
double maxAutoIndent,
bool useDisplayMode,
ITextAndAdornmentSequencer^ sequencer,
IClassificationFormatMap^ classificationFormatMap
)
abstract Create :
sourceTextSnapshot:ITextSnapshot *
visualBufferSnapshot:ITextSnapshot *
tabSize:int *
baseIndent:float *
wordWrapWidth:float *
maxAutoIndent:float *
useDisplayMode:bool *
sequencer:ITextAndAdornmentSequencer *
classificationFormatMap:IClassificationFormatMap -> IFormattedLineSource
function Create(
sourceTextSnapshot : ITextSnapshot,
visualBufferSnapshot : ITextSnapshot,
tabSize : int,
baseIndent : double,
wordWrapWidth : double,
maxAutoIndent : double,
useDisplayMode : boolean,
sequencer : ITextAndAdornmentSequencer,
classificationFormatMap : IClassificationFormatMap
) : IFormattedLineSource
Parameter
sourceTextSnapshot
Typ: Microsoft.VisualStudio.Text.ITextSnapshotDie Textmomentaufnahme für den Quellpuffer.
visualBufferSnapshot
Typ: Microsoft.VisualStudio.Text.ITextSnapshotDie Textmomentaufnahme für den visuellen Puffer.
tabSize
Typ: Int32Die Anzahl von Leerzeichen, die einem Tabstopp entsprechen.
baseIndent
Typ: DoubleDer Standardeinzug für alle Zeilen.
wordWrapWidth
Typ: DoubleDie Breite des Zeilenumbruchs in logischen Pixeln.
maxAutoIndent
Typ: DoubleDer maximale Einzug für automatisch umbrochene, eingerückte Zeilen.
useDisplayMode
Typ: BooleanVerwenden Sie Display zum Formatieren des Texts.
sequencer
Typ: Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencerDer Sequenzer für Text und Randsteuerelement der Ansicht. Wenn nullein Nullverweis (Nothing in Visual Basic), kein Speicherplatz vorhanden ist, das Zusatzelemente aushandelt.
classificationFormatMap
Typ: Microsoft.VisualStudio.Text.Classification.IClassificationFormatMapDie Formatierungszuordnung für die Klassifizierung, die beim Formatieren von Text verwendet werden soll.
Rückgabewert
Typ: Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource
Eine neue Textformatierungsquelle für diese Momentaufnahme.
Hinweise
Diese Methode entspricht dem Aufrufen der Methode des erstellten (...) oben mit einer kompletten Rangfolge gleichwertig, die niemals beliebigen Text klassifiziert.
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.