Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / Effects / BitmapEffectOutputConnector.cs / 1 / BitmapEffectOutputConnector.cs
//------------------------------------------------------------------------------
// Microsoft Avalon
// Copyright (c) Microsoft Corporation, 2005
//
// File: BitmapEffectOutputConnector.cs
//-----------------------------------------------------------------------------
using MS.Internal;
using System;
using System.IO;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Media;
using System.Windows.Markup;
using System.Windows.Media.Animation;
using System.Windows.Media.Composition;
namespace System.Windows.Media.Effects
{
///
/// BitmapEffectOutputConnector
///
internal class BitmapEffectOutputConnector
{
SafeMILHandle /*IMILBitmapEffectOutputConnector*/ connector;
internal BitmapEffectOutputConnector(SafeMILHandle nativeConnector)
{
Debug.Assert(nativeConnector != null);
connector = nativeConnector;
}
internal SafeMILHandle NativeConnectorSafeHandle
{
get
{
return connector;
}
}
#if never
///
/// Returns true if the output connector is connected
///
public bool IsConnected
{
get
{
Debug.Assert(connector != null);
bool fIsConnected;
HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectConnector.IsConnected(connector, out fIsConnected));
return fIsConnected;
}
}
///
/// Returns the number of connections
///
public int Connections
{
get
{
uint iNumConnections;
HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetNumberConnections(connector,
out iNumConnections));
return (int)iNumConnections;
}
}
///
/// Return input connector
///
/// connector index
/// input connector
public BitmapEffectInputConnector GetConnection(int index)
{
SafeMILHandle connection;
HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetConnection(connector, (uint)index,
out connection));
return new BitmapEffectInputConnector(connection);
}
#endif
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
// Microsoft Avalon
// Copyright (c) Microsoft Corporation, 2005
//
// File: BitmapEffectOutputConnector.cs
//-----------------------------------------------------------------------------
using MS.Internal;
using System;
using System.IO;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Media;
using System.Windows.Markup;
using System.Windows.Media.Animation;
using System.Windows.Media.Composition;
namespace System.Windows.Media.Effects
{
///
/// BitmapEffectOutputConnector
///
internal class BitmapEffectOutputConnector
{
SafeMILHandle /*IMILBitmapEffectOutputConnector*/ connector;
internal BitmapEffectOutputConnector(SafeMILHandle nativeConnector)
{
Debug.Assert(nativeConnector != null);
connector = nativeConnector;
}
internal SafeMILHandle NativeConnectorSafeHandle
{
get
{
return connector;
}
}
#if never
///
/// Returns true if the output connector is connected
///
public bool IsConnected
{
get
{
Debug.Assert(connector != null);
bool fIsConnected;
HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectConnector.IsConnected(connector, out fIsConnected));
return fIsConnected;
}
}
///
/// Returns the number of connections
///
public int Connections
{
get
{
uint iNumConnections;
HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetNumberConnections(connector,
out iNumConnections));
return (int)iNumConnections;
}
}
///
/// Return input connector
///
/// connector index
/// input connector
public BitmapEffectInputConnector GetConnection(int index)
{
SafeMILHandle connection;
HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetConnection(connector, (uint)index,
out connection));
return new BitmapEffectInputConnector(connection);
}
#endif
}
}
// 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
- ListView.cs
- entityreference_tresulttype.cs
- Atom10FormatterFactory.cs
- DependencyPropertyChangedEventArgs.cs
- StaticExtension.cs
- UndoManager.cs
- ToolboxItem.cs
- HostExecutionContextManager.cs
- AnchorEditor.cs
- StorageEndPropertyMapping.cs
- DoubleStorage.cs
- MasterPageBuildProvider.cs
- Validator.cs
- Scene3D.cs
- File.cs
- ValidatorUtils.cs
- Literal.cs
- ArrayHelper.cs
- localization.cs
- SecondaryViewProvider.cs
- hresults.cs
- PointUtil.cs
- BoundPropertyEntry.cs
- ValueUnavailableException.cs
- QueryRewriter.cs
- EndPoint.cs
- LinkLabelLinkClickedEvent.cs
- DataListItemCollection.cs
- CaretElement.cs
- DrawingContextFlattener.cs
- ArglessEventHandlerProxy.cs
- SecurityManager.cs
- SafeLocalMemHandle.cs
- SliderAutomationPeer.cs
- TextTreeExtractElementUndoUnit.cs
- XMLDiffLoader.cs
- SecurityContext.cs
- AccessDataSource.cs
- SimpleExpression.cs
- CapabilitiesPattern.cs
- Drawing.cs
- SplayTreeNode.cs
- RightsManagementPermission.cs
- XPathSelfQuery.cs
- TerminatorSinks.cs
- BaseCAMarshaler.cs
- EdmItemCollection.cs
- RouteValueDictionary.cs
- ArithmeticException.cs
- ToolboxItemAttribute.cs
- GregorianCalendar.cs
- TextProperties.cs
- TextBoxAutoCompleteSourceConverter.cs
- MessageDesigner.cs
- JournalEntry.cs
- HashSet.cs
- TextElementEnumerator.cs
- FileDialogCustomPlaces.cs
- Rotation3DAnimationBase.cs
- SendMailErrorEventArgs.cs
- TransformCollection.cs
- SystemDiagnosticsSection.cs
- StorageTypeMapping.cs
- TreeViewItem.cs
- SettingsProperty.cs
- RawTextInputReport.cs
- TriggerBase.cs
- GeometryCollection.cs
- _NtlmClient.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ReadOnlyDataSourceView.cs
- DateTime.cs
- DrawingGroupDrawingContext.cs
- DrawingDrawingContext.cs
- CacheEntry.cs
- DataSourceSerializationException.cs
- EpmSyndicationContentSerializer.cs
- OperationPerformanceCounters.cs
- DropShadowBitmapEffect.cs
- EntitySqlQueryBuilder.cs
- PersistChildrenAttribute.cs
- XPathDocumentIterator.cs
- TargetInvocationException.cs
- LocatorManager.cs
- WebPartsSection.cs
- TypeExtensions.cs
- UnmanagedMemoryStream.cs
- GuidelineSet.cs
- SQLMembershipProvider.cs
- RangeValidator.cs
- Int32EqualityComparer.cs
- GregorianCalendarHelper.cs
- InkCanvas.cs
- DataView.cs
- DataGridViewCellLinkedList.cs
- BackStopAuthenticationModule.cs
- CodeSnippetCompileUnit.cs
- RequestResizeEvent.cs
- Converter.cs
- TypeToStringValueConverter.cs