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
- VisualStyleTypesAndProperties.cs
- BufferedWebEventProvider.cs
- NavigationPropertyEmitter.cs
- HandledMouseEvent.cs
- WriteTimeStream.cs
- XmlSchemaObject.cs
- SettingsBindableAttribute.cs
- VerticalAlignConverter.cs
- FixedTextSelectionProcessor.cs
- RichTextBox.cs
- MsmqBindingElementBase.cs
- NCryptNative.cs
- CharacterBuffer.cs
- SystemIcmpV4Statistics.cs
- BooleanProjectedSlot.cs
- PenContexts.cs
- VBIdentifierNameEditor.cs
- PackagingUtilities.cs
- ListSortDescription.cs
- XamlFxTrace.cs
- KeysConverter.cs
- TextBox.cs
- SignedXml.cs
- InfoCardClaim.cs
- VectorValueSerializer.cs
- SurrogateEncoder.cs
- dataprotectionpermissionattribute.cs
- ButtonPopupAdapter.cs
- ForceCopyBuildProvider.cs
- Help.cs
- FlowDocumentReader.cs
- XmlComplianceUtil.cs
- MultiView.cs
- InkCanvasSelectionAdorner.cs
- BadImageFormatException.cs
- __ComObject.cs
- Interlocked.cs
- AssemblyHash.cs
- SyndicationElementExtension.cs
- SelectionProviderWrapper.cs
- ShaderRenderModeValidation.cs
- UInt32Converter.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- TrackingCondition.cs
- DataObjectEventArgs.cs
- FlowPosition.cs
- VBIdentifierDesigner.xaml.cs
- LoginAutoFormat.cs
- XsltException.cs
- HttpRawResponse.cs
- ArrayList.cs
- TextRunProperties.cs
- MetricEntry.cs
- RecognizerStateChangedEventArgs.cs
- RestHandlerFactory.cs
- DoubleIndependentAnimationStorage.cs
- HttpModule.cs
- LeftCellWrapper.cs
- GlobalProxySelection.cs
- ActivityXRefPropertyEditor.cs
- DateTimeHelper.cs
- DesignOnlyAttribute.cs
- ConnectAlgorithms.cs
- StructuredTypeEmitter.cs
- ISCIIEncoding.cs
- Messages.cs
- SkipStoryboardToFill.cs
- Array.cs
- SafeNativeMethods.cs
- DirectoryInfo.cs
- BitStream.cs
- RepeatBehaviorConverter.cs
- PTManager.cs
- MatrixStack.cs
- Subtree.cs
- SystemInformation.cs
- httpapplicationstate.cs
- ListViewSortEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- ItemCollection.cs
- Throw.cs
- CommandBindingCollection.cs
- HandlerMappingMemo.cs
- SecurityTokenInclusionMode.cs
- DataRecordObjectView.cs
- DeferrableContent.cs
- BCryptNative.cs
- EditCommandColumn.cs
- Codec.cs
- DefaultBindingPropertyAttribute.cs
- GenericTextProperties.cs
- Pointer.cs
- MeasureItemEvent.cs
- CatalogZoneDesigner.cs
- XmlTextReader.cs
- XmlQualifiedNameTest.cs
- safex509handles.cs
- HMACSHA1.cs
- SqlConnectionHelper.cs
- XmlSchemaExporter.cs