Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / DashStyles.cs / 1305600 / DashStyles.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // 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
- ContainerParaClient.cs
- EdmType.cs
- mediaeventargs.cs
- StrokeNodeEnumerator.cs
- ToolStripDropTargetManager.cs
- DataGridRow.cs
- SecurityCriticalDataForSet.cs
- cookiecollection.cs
- ContainerVisual.cs
- WorkflowInstanceSuspendedRecord.cs
- StylusButtonCollection.cs
- DynamicResourceExtensionConverter.cs
- CleanUpVirtualizedItemEventArgs.cs
- TimeSpanSecondsConverter.cs
- ExtractedStateEntry.cs
- DocumentViewerBase.cs
- XmlHierarchicalDataSourceView.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- WebPartConnectionsEventArgs.cs
- HttpPostServerProtocol.cs
- SqlInfoMessageEvent.cs
- Peer.cs
- DataGridViewCellValueEventArgs.cs
- ButtonFieldBase.cs
- SchemaImporter.cs
- Util.cs
- ConnectionManagementElement.cs
- SequentialOutput.cs
- ColumnHeaderCollectionEditor.cs
- XslCompiledTransform.cs
- XamlWriter.cs
- InputLanguageProfileNotifySink.cs
- IResourceProvider.cs
- OAVariantLib.cs
- CacheOutputQuery.cs
- TextServicesCompartmentEventSink.cs
- FileRecordSequence.cs
- MetadataArtifactLoaderResource.cs
- QilFactory.cs
- AsyncOperation.cs
- Grammar.cs
- BamlLocalizableResourceKey.cs
- CommandHelper.cs
- TreeNodeStyle.cs
- ActiveXContainer.cs
- HttpHeaderCollection.cs
- Vector3dCollection.cs
- InvalidAsynchronousStateException.cs
- ErrorTableItemStyle.cs
- HtmlTable.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- BooleanToVisibilityConverter.cs
- DocumentPageViewAutomationPeer.cs
- WorkflowInstanceContextProvider.cs
- ListViewItemSelectionChangedEvent.cs
- HighContrastHelper.cs
- SymLanguageType.cs
- ScrollProperties.cs
- TabItemAutomationPeer.cs
- TextView.cs
- WsatServiceAddress.cs
- FlowchartSizeFeature.cs
- SoapInteropTypes.cs
- TextEditorTyping.cs
- BufferedReadStream.cs
- SqlError.cs
- ExceptionUtil.cs
- XmlTypeAttribute.cs
- TableLayoutSettingsTypeConverter.cs
- MenuItemCollection.cs
- DbDataReader.cs
- FontStyles.cs
- PartitionedStream.cs
- XmlDocumentFragment.cs
- ImmComposition.cs
- SerializationSectionGroup.cs
- Expander.cs
- CodeNamespaceCollection.cs
- DataGridViewCellMouseEventArgs.cs
- SessionIDManager.cs
- SafeHandle.cs
- Error.cs
- HttpProfileBase.cs
- ParserContext.cs
- BaseValidator.cs
- StoreConnection.cs
- FtpWebResponse.cs
- Effect.cs
- PlaceHolder.cs
- SecurityElement.cs
- MailSettingsSection.cs
- PageTrueTypeFont.cs
- ToolStripGrip.cs
- DuplexSecurityProtocolFactory.cs
- BindStream.cs
- LocalizationCodeDomSerializer.cs
- HttpCookiesSection.cs
- SimpleTextLine.cs
- Parameter.cs
- DynamicEndpointElement.cs