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; ////// /// public sealed class InstalledFontCollection : FontCollection { ////// Represents the fonts installed on the /// system. /// ////// /// Initializes a new instance of the [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. //------------------------------------------------------------------------------ //class. /// // 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; ////// /// public sealed class InstalledFontCollection : FontCollection { ////// Represents the fonts installed on the /// system. /// ////// /// Initializes a new instance of the [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.class. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyValueChangedEvent.cs
- PseudoWebRequest.cs
- XPathConvert.cs
- FontUnitConverter.cs
- Point4D.cs
- AlphabeticalEnumConverter.cs
- ConnectionPoint.cs
- PropertyConverter.cs
- errorpatternmatcher.cs
- OAVariantLib.cs
- ProfileGroupSettings.cs
- StaticFileHandler.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SecurityAlgorithmSuite.cs
- FlowLayoutSettings.cs
- BrowserDefinition.cs
- ClientSettingsSection.cs
- TypedReference.cs
- DesignerAttribute.cs
- DataServiceBuildProvider.cs
- Delegate.cs
- ColumnTypeConverter.cs
- SafeProcessHandle.cs
- TimeSpanConverter.cs
- TdsParserHelperClasses.cs
- EntityDataSourceValidationException.cs
- HttpWebResponse.cs
- Int64Converter.cs
- XmlObjectSerializer.cs
- X500Name.cs
- GlobalizationSection.cs
- PrintDialog.cs
- Preprocessor.cs
- PackWebRequestFactory.cs
- PageFunction.cs
- SqlXml.cs
- Exceptions.cs
- SiteMapProvider.cs
- WindowsFormsHostAutomationPeer.cs
- PlainXmlWriter.cs
- WebPartConnectionsEventArgs.cs
- MouseButtonEventArgs.cs
- EntityCommand.cs
- diagnosticsswitches.cs
- RightsManagementEncryptionTransform.cs
- TreeViewAutomationPeer.cs
- ErrorFormatter.cs
- SystemColors.cs
- ArrayWithOffset.cs
- SQLDateTimeStorage.cs
- AppLevelCompilationSectionCache.cs
- PageContentCollection.cs
- HyperlinkAutomationPeer.cs
- InstanceOwnerException.cs
- ScriptReference.cs
- GeneralTransform3D.cs
- MenuBindingsEditorForm.cs
- KeyFrames.cs
- GeneralTransform.cs
- InstanceDataCollection.cs
- SystemColors.cs
- WebException.cs
- AvTraceDetails.cs
- PolicyStatement.cs
- PropertyChangedEventManager.cs
- EventToken.cs
- WebColorConverter.cs
- StringStorage.cs
- StylusShape.cs
- NameValueSectionHandler.cs
- ExpressionBuilderContext.cs
- FormsAuthenticationModule.cs
- SystemIPGlobalStatistics.cs
- ColorTransform.cs
- Transactions.cs
- ActivityBuilderXamlWriter.cs
- MappingMetadataHelper.cs
- SmiContext.cs
- Keywords.cs
- Mouse.cs
- ByteFacetDescriptionElement.cs
- ImportDesigner.xaml.cs
- ForEachAction.cs
- ScriptingRoleServiceSection.cs
- ComponentEditorPage.cs
- DataGridRowDetailsEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ObjectManager.cs
- DelegateArgumentValue.cs
- ScriptDescriptor.cs
- TemplateBindingExtensionConverter.cs
- StreamResourceInfo.cs
- IsolatedStoragePermission.cs
- processwaithandle.cs
- MimeParameter.cs
- RightsManagementPermission.cs
- SimpleMailWebEventProvider.cs
- HTMLTextWriter.cs
- TimestampInformation.cs
- ValueConversionAttribute.cs