Share via


ContentSerializerAttribute.FlattenContent Property

Gets or sets a value idicating whether to write member contents directly into the current XML context rather than wrapping the member in a new XML element (default=false).

Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public bool FlattenContent { get; set; }

Property Value

Value idicating whether to write member contents directly into the current XML context rather than wrapping the member in a new XML element.

Example

ContentSerializerAttribute with FlattenContent set true.

[ContentSerializerAttribute( FlattenContent = true )]

See Also

Reference

ContentSerializerAttribute Class
ContentSerializerAttribute Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone