FormatProvider Property
Collapse the table of content
Expand the table of content

TextWriter.FormatProvider Property

Gets an object that controls formatting.

[Visual Basic]
Public Overridable ReadOnly Property FormatProvider As _
public virtual IFormatProvider FormatProvider {get;}
public: __property virtual IFormatProvider* get_FormatProvider();
public function get FormatProvider() : IFormatProvider;

Property Value

An IFormatProvider object for a specific culture, or the formatting of the current culture if no other culture is specified.


For an example of creating a file and writing text to a file, see Writing Text to a File. For an example of reading text from a file, see Reading Text from a File. For an example of reading from and writing to a binary file, see Reading and Writing to a Newly Created Data File.

The following table lists examples of other typical or related I/O tasks.

To do this... See the example in this topic...
Create a text file. Writing Text to a File
Write to a text file. Writing Text to a File
Read from a text file. Reading Text from a File


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

TextWriter Class | TextWriter Members | System.IO Namespace | Working with I/O | Reading Text from a File | Writing Text to a File

© 2015 Microsoft