Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 [....] // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlNamespaceDeclarationsAttribute.cs
- BamlTreeMap.cs
- DataGridViewButtonColumn.cs
- ConnectionInterfaceCollection.cs
- Utility.cs
- FastEncoderWindow.cs
- ChtmlTextWriter.cs
- Emitter.cs
- SortedList.cs
- CodePageEncoding.cs
- SafeWaitHandle.cs
- SqlConnectionManager.cs
- BasicHttpMessageSecurity.cs
- RuntimeHelpers.cs
- X509Utils.cs
- ItemsControlAutomationPeer.cs
- InvalidateEvent.cs
- TextFindEngine.cs
- ServiceDescriptionSerializer.cs
- QuaternionValueSerializer.cs
- XmlBinaryReader.cs
- Matrix.cs
- TextContainerChangedEventArgs.cs
- DynamicPropertyHolder.cs
- TextEditorCopyPaste.cs
- AutomationPattern.cs
- ExtensionFile.cs
- StoreUtilities.cs
- CommentEmitter.cs
- ObjectDataSourceChooseTypePanel.cs
- DataGridComponentEditor.cs
- DirectoryNotFoundException.cs
- DiffuseMaterial.cs
- DefaultPrintController.cs
- RectAnimation.cs
- MaskedTextProvider.cs
- TemplatedMailWebEventProvider.cs
- DesignTimeVisibleAttribute.cs
- SafeCryptContextHandle.cs
- SystemIPv4InterfaceProperties.cs
- XamlPointCollectionSerializer.cs
- QueueException.cs
- Int32Converter.cs
- PenLineJoinValidation.cs
- CodeObject.cs
- TabControlCancelEvent.cs
- BitFlagsGenerator.cs
- DesignerTransactionCloseEvent.cs
- EmptyEnumerator.cs
- StringBuilder.cs
- HwndSourceParameters.cs
- AppDomainUnloadedException.cs
- SerializationStore.cs
- ProcessThreadDesigner.cs
- XslCompiledTransform.cs
- DiscoveryDefaults.cs
- Registry.cs
- RepeaterItem.cs
- TextEditorTyping.cs
- ListViewItem.cs
- Cursors.cs
- ColorEditor.cs
- CompositionTarget.cs
- HierarchicalDataBoundControlAdapter.cs
- TranslateTransform3D.cs
- PerfCounters.cs
- DesignerLinkAdapter.cs
- ClientSponsor.cs
- EventRoute.cs
- SoapCodeExporter.cs
- BindingContext.cs
- ContextMenuService.cs
- ListViewGroup.cs
- DataFormats.cs
- ProfileBuildProvider.cs
- MemberBinding.cs
- RootBrowserWindowProxy.cs
- SubMenuStyle.cs
- ControlCollection.cs
- PointConverter.cs
- WindowsListViewSubItem.cs
- TextEditorDragDrop.cs
- ArrayWithOffset.cs
- DataGridState.cs
- ScalarOps.cs
- Zone.cs
- XhtmlBasicCalendarAdapter.cs
- PrivateFontCollection.cs
- AssemblyHash.cs
- XmlQueryRuntime.cs
- BooleanAnimationUsingKeyFrames.cs
- RangeValuePattern.cs
- AssociationType.cs
- Choices.cs
- SmtpLoginAuthenticationModule.cs
- HandlerWithFactory.cs
- SoapCommonClasses.cs
- DPAPIProtectedConfigurationProvider.cs
- MonikerBuilder.cs
- Util.cs