C# 클래스 Microsoft.R.Components.Extensions.TextBufferExtensions

파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
CanBeSavedInCurrentEncoding ( this textBuffer ) : bool

Checks if file contents can be saved to disk in the current encoding without data loss.

GetEncoding ( this textBuffer ) : Encoding

Checks if file contents can be saved to disk in the current encoding without data loss.

GetFilePath ( this textBuffer ) : string
IsContentEqualsOrdinal ( this textBuffer, ITrackingSpan span1, ITrackingSpan span2 ) : bool
IsConververtibleTo ( this textBuffer, Encoding encoding ) : bool

Checks if file contents can be represented in the specified encoding without data loss.

Save ( this textBuffer, Encoding encoding = null ) : void
ToTextDocument ( this textBuffer ) : ITextDocument

메소드 상세

CanBeSavedInCurrentEncoding() 공개 정적인 메소드

Checks if file contents can be saved to disk in the current encoding without data loss.
public static CanBeSavedInCurrentEncoding ( this textBuffer ) : bool
textBuffer this
리턴 bool

GetEncoding() 공개 정적인 메소드

Checks if file contents can be saved to disk in the current encoding without data loss.
public static GetEncoding ( this textBuffer ) : Encoding
textBuffer this
리턴 System.Text.Encoding

GetFilePath() 공개 정적인 메소드

public static GetFilePath ( this textBuffer ) : string
textBuffer this
리턴 string

IsContentEqualsOrdinal() 공개 정적인 메소드

public static IsContentEqualsOrdinal ( this textBuffer, ITrackingSpan span1, ITrackingSpan span2 ) : bool
textBuffer this
span1 ITrackingSpan
span2 ITrackingSpan
리턴 bool

IsConververtibleTo() 공개 정적인 메소드

Checks if file contents can be represented in the specified encoding without data loss.
public static IsConververtibleTo ( this textBuffer, Encoding encoding ) : bool
textBuffer this
encoding System.Text.Encoding
리턴 bool

Save() 공개 정적인 메소드

public static Save ( this textBuffer, Encoding encoding = null ) : void
textBuffer this
encoding System.Text.Encoding
리턴 void

ToTextDocument() 공개 정적인 메소드

public static ToTextDocument ( this textBuffer ) : ITextDocument
textBuffer this
리턴 ITextDocument