Gorgon
Show / Hide Table of Contents

Interface IContentFile

A data structure representing a file containing content.

Inherited Members
IGorgonNamedObject.Name
Namespace: Gorgon.Editor.Content
Assembly: Gorgon.Editor.API.dll
Syntax
public interface IContentFile : IGorgonNamedObject

Properties

| Edit this page View Source

Extension

Property to return the extension for the file.

Declaration
string Extension { get; }
Property Value
Type Description
string
| Edit this page View Source

IsChanged

Property to set or return whether the file has changes.

Declaration
bool IsChanged { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

IsOpen

Property to set or return whether the file is open for editing or not.

Declaration
bool IsOpen { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Metadata

Property to return the metadata associated with the file.

Declaration
ProjectItemMetadata Metadata { get; }
Property Value
Type Description
ProjectItemMetadata
| Edit this page View Source

Path

Property to return the path to the file.

Declaration
string Path { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

ClearLinks()

Function to remove all child dependency links from this content.

Declaration
void ClearLinks()
| Edit this page View Source

LinkContent(IContentFile)

Function to link a content file to be dependant upon this content.

Declaration
void LinkContent(IContentFile file)
Parameters
Type Name Description
IContentFile file

The file to link to this content.

| Edit this page View Source

Refresh()

Function called to refresh the information about the file.

Declaration
void Refresh()
| Edit this page View Source

RefreshMetadata()

Function to notify that the metadata should be refreshed.

Declaration
void RefreshMetadata()
| Edit this page View Source

UnlinkContent(IContentFile)

Function to unlink a content file from being dependant upon this content.

Declaration
void UnlinkContent(IContentFile file)
Parameters
Type Name Description
IContentFile file

The file to unlink from this content.

Events

| Edit this page View Source

Renamed

Event triggered if this content file was renamed.

Declaration
event EventHandler<ContentFileRenamedEventArgs> Renamed
Event Type
Type Description
EventHandler<ContentFileRenamedEventArgs>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author