Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / InstalledFontCollection.cs / 1305376 / InstalledFontCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Text {
using System.Diagnostics;
using System;
using System.Drawing;
using System.Drawing.Internal;
using System.Runtime.InteropServices;
using System.ComponentModel;
using Microsoft.Win32;
using System.Runtime.Versioning;
///
///
///
/// Represents the fonts installed on the
/// system.
///
///
public sealed class InstalledFontCollection : FontCollection {
///
///
/// Initializes a new instance of the class.
///
[ResourceExposure(ResourceScope.Process)]
[ResourceConsumption(ResourceScope.Process)]
public InstalledFontCollection() {
nativeFontCollection = IntPtr.Zero;
int status = SafeNativeMethods.Gdip.GdipNewInstalledFontCollection(out nativeFontCollection);
if (status != SafeNativeMethods.Gdip.Ok)
throw SafeNativeMethods.Gdip.StatusException(status);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Text {
using System.Diagnostics;
using System;
using System.Drawing;
using System.Drawing.Internal;
using System.Runtime.InteropServices;
using System.ComponentModel;
using Microsoft.Win32;
using System.Runtime.Versioning;
///
///
///
/// Represents the fonts installed on the
/// system.
///
///
public sealed class InstalledFontCollection : FontCollection {
///
///
/// Initializes a new instance of the class.
///
[ResourceExposure(ResourceScope.Process)]
[ResourceConsumption(ResourceScope.Process)]
public InstalledFontCollection() {
nativeFontCollection = IntPtr.Zero;
int status = SafeNativeMethods.Gdip.GdipNewInstalledFontCollection(out nativeFontCollection);
if (status != SafeNativeMethods.Gdip.Ok)
throw SafeNativeMethods.Gdip.StatusException(status);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmptyReadOnlyDictionaryInternal.cs
- TabletDeviceInfo.cs
- HttpHandlerActionCollection.cs
- TypeNameParser.cs
- Int64Animation.cs
- odbcmetadatafactory.cs
- StandardMenuStripVerb.cs
- SessionStateContainer.cs
- InkCanvasInnerCanvas.cs
- DataContractSerializer.cs
- SignalGate.cs
- OdbcConnectionFactory.cs
- HttpResponseBase.cs
- SmtpException.cs
- NotCondition.cs
- DbQueryCommandTree.cs
- GPRECT.cs
- SendMessageChannelCache.cs
- GZipUtils.cs
- SecurityKeyIdentifier.cs
- ReverseComparer.cs
- TimeZoneNotFoundException.cs
- PerformanceCounterPermission.cs
- Predicate.cs
- PointAnimation.cs
- CommandConverter.cs
- TrustSection.cs
- DispatcherSynchronizationContext.cs
- RtfControls.cs
- Graphics.cs
- DocumentViewerAutomationPeer.cs
- X509WindowsSecurityToken.cs
- DesignerOptionService.cs
- Debug.cs
- _Semaphore.cs
- RoutedPropertyChangedEventArgs.cs
- CompilerInfo.cs
- SignedInfo.cs
- SqlDataRecord.cs
- RequestCachePolicyConverter.cs
- EncryptedReference.cs
- BehaviorEditorPart.cs
- StringConverter.cs
- TrackingQueryElement.cs
- RtfControls.cs
- Msmq4SubqueuePoisonHandler.cs
- QueryConverter.cs
- HtmlTableCellCollection.cs
- FontStyle.cs
- Variant.cs
- GridViewColumnCollection.cs
- BinaryConverter.cs
- CharKeyFrameCollection.cs
- RegisteredArrayDeclaration.cs
- shaperfactory.cs
- TypeDelegator.cs
- ScriptReference.cs
- FamilyMap.cs
- UnsafeNativeMethods.cs
- TemplateBamlTreeBuilder.cs
- Label.cs
- LookupNode.cs
- PlatformCulture.cs
- DataGridAddNewRow.cs
- XmlCompatibilityReader.cs
- categoryentry.cs
- SafeJobHandle.cs
- GCHandleCookieTable.cs
- RemoteWebConfigurationHost.cs
- ListParaClient.cs
- JavaScriptSerializer.cs
- JsonMessageEncoderFactory.cs
- EntityConnection.cs
- HasCopySemanticsAttribute.cs
- ReflectionUtil.cs
- SchemaImporter.cs
- Vector3D.cs
- BookmarkEventArgs.cs
- ContainerVisual.cs
- WebPartConnectionsCloseVerb.cs
- XmlArrayAttribute.cs
- SrgsOneOf.cs
- ReadOnlyDataSource.cs
- LZCodec.cs
- QueueProcessor.cs
- Image.cs
- BrushValueSerializer.cs
- XPathItem.cs
- Win32NamedPipes.cs
- TypeConstant.cs
- CacheSection.cs
- SupportsPreviewControlAttribute.cs
- ForceCopyBuildProvider.cs
- SspiNegotiationTokenAuthenticator.cs
- TdsRecordBufferSetter.cs
- WebConfigurationManager.cs
- HijriCalendar.cs
- ObjectListComponentEditor.cs
- StringReader.cs
- PersonalizablePropertyEntry.cs